1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 06:56:37 +02:00

fixed a problem with parting botserv bots

This commit is contained in:
DukePyrolator
2010-08-01 18:30:11 +02:00
parent a65e9df8dc
commit 5b68782133
+2 -1
View File
@@ -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;