summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2010-08-01 18:30:11 +0200
committerDukePyrolator <DukePyrolator@anope.org>2010-08-01 18:30:11 +0200
commit5b6878213357a0b2bcb8da06ef66b47a4ec52e8c (patch)
treeb7c548fbf9297799f6c1e841a350f094dbaf0d93 /src/channels.cpp
parenta65e9df8dc343ea04067ad03fc26c9e707e78863 (diff)
fixed a problem with parting botserv bots
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 894528c88..caab1dcbc 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -183,7 +183,8 @@ void Channel::DeleteUser(User *user)
if (this->ci && this->ci->HasFlag(CI_INHABIT))
return;
- if (!Config.s_BotServ.empty() && this->ci && this->ci->bi && this->FindUser(this->ci->bi))
+ /* check for BSMinUsers and part the BotServ bot from the channel */
+ if (this->users.size() < Config.BSMinUsers && !Config.s_BotServ.empty() && this->ci && this->ci->bi && this->FindUser(this->ci->bi))
this->ci->bi->Part(this->ci->c);
else if (this->users.empty())
delete this;