mirror of
https://github.com/anope/anope.git
synced 2026-06-26 02:06:39 +02:00
Added support for permanent channels. This supports both permanent channel modes and the ability to have BotServ bots stay in the channel to keep it open.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2638 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+7
-2
@@ -164,8 +164,13 @@ void BotInfo::UnAssign(User *u, ChannelInfo *ci)
|
||||
if (MOD_RESULT == EVENT_STOP)
|
||||
return;
|
||||
|
||||
if (u && ci->c && ci->c->usercount >= BSMinUsers)
|
||||
ircdproto->SendPart(ci->bi, ci->name, "UNASSIGN from %s", u->nick);
|
||||
if (ci->c && ci->c->usercount >= BSMinUsers)
|
||||
{
|
||||
if (u)
|
||||
ircdproto->SendPart(ci->bi, ci->name, "UNASSIGN from %s", u->nick);
|
||||
else
|
||||
ircdproto->SendPart(ci->bi, ci->name, "");
|
||||
}
|
||||
|
||||
ci->bi->chancount--;
|
||||
ci->bi = NULL;
|
||||
|
||||
Reference in New Issue
Block a user