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:
+2
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user