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/core/cs_set.c | |
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/core/cs_set.c')
-rw-r--r-- | src/core/cs_set.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/cs_set.c b/src/core/cs_set.c index 277649cfb..158987acd 100644 --- a/src/core/cs_set.c +++ b/src/core/cs_set.c @@ -583,7 +583,7 @@ class CommandCSSet : public Command /* Unset perm mode */ if (cm && ci->c && ci->c->HasMode(CMODE_PERM)) ci->c->RemoveMode(NULL, cm); - if (Config.s_BotServ && ci->bi && ci->c->usercount == Config.BSMinUsers - 1) + if (Config.s_BotServ && ci->bi && ci->c->users.size() == Config.BSMinUsers - 1) ircdproto->SendPart(ci->bi, ci->c, NULL); /* No channel mode, no BotServ, but using ChanServ as the botserv bot @@ -595,7 +595,7 @@ class CommandCSSet : public Command findbot(Config.s_ChanServ)->UnAssign(NULL, ci); } - if (ci->c && !ci->c->users) + if (ci->c && ci->c->users.empty()) delete ci->c; } |