diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-16 06:57:14 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-16 06:57:14 +0000 |
commit | ff13d00eb50a228e05c4c37b0757082ca8bc9e4a (patch) | |
tree | 9e3c000e91963de7c696bb3733fbb33a994a445b /src/bots.cpp | |
parent | aaf1cefd1c34e08d68725d459cab02128daf72e6 (diff) |
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
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index 58206963c..d19386abc 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -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()); |