summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regchannel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index aa2f9d3eb..a205e7228 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -633,10 +633,10 @@ akick->nc->display : akick->mask);
Alog(LOG_DEBUG) << "channel: Autokicking "<< user->GetMask() << " from " << this->name;
- /* If the channel doesnt have any users and if a bot isn't already in the channel, join it
+ /* If the channel isn't syncing and doesn't have any users, join ChanServ
* NOTE: we use usercount == 1 here as there is one user, but they are about to be destroyed
*/
- if (this->c->users.size() == 1 && !this->HasFlag(CI_INHABIT))
+ if (this->c->users.size() == 1 && !this->HasFlag(CI_INHABIT) && !this->c->HasFlag(CH_SYNCING))
{
/* If channel was forbidden, etc, set it +si to prevent rejoin */
if (set_modes)