mirror of
https://github.com/anope/anope.git
synced 2026-06-27 03:16:37 +02:00
Removed c_userlist and u_chanlist, replaced with std::list
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2764 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+3
-3
@@ -92,7 +92,7 @@ void BotInfo::RejoinAll()
|
||||
|
||||
for (i = 0; i < 256; ++i)
|
||||
for (ci = chanlists[i]; ci; ci = ci->next)
|
||||
if (ci->bi == this && ci->c && (ci->c->usercount >= Config.BSMinUsers))
|
||||
if (ci->bi == this && ci->c && (ci->c->users.size() >= Config.BSMinUsers))
|
||||
bot_join(ci);
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ void BotInfo::Assign(User *u, ChannelInfo *ci)
|
||||
|
||||
ci->bi = this;
|
||||
++this->chancount;
|
||||
if (ci->c && ci->c->usercount >= Config.BSMinUsers)
|
||||
if (ci->c && ci->c->users.size() >= Config.BSMinUsers)
|
||||
bot_join(ci);
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ void BotInfo::UnAssign(User *u, ChannelInfo *ci)
|
||||
if (MOD_RESULT == EVENT_STOP)
|
||||
return;
|
||||
|
||||
if (ci->c && ci->c->usercount >= Config.BSMinUsers)
|
||||
if (ci->c && ci->c->users.size() >= Config.BSMinUsers)
|
||||
{
|
||||
if (u)
|
||||
ircdproto->SendPart(ci->bi, ci->c, "UNASSIGN from %s", u->nick.c_str());
|
||||
|
||||
Reference in New Issue
Block a user