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/chanserv.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/chanserv.c')
| -rw-r--r-- | src/chanserv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chanserv.c b/src/chanserv.c index af458e42b..56a94839c 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -142,7 +142,7 @@ class ChanServTimer : public Timer c->ci->UnsetFlag(CI_INHABIT); /* If the channel has users again, don't part it and halt */ - if (c->usercount) + if (!c->users.empty()) return; if (c->ci->bi) @@ -697,7 +697,7 @@ bool ChannelInfo::CheckKick(User *user) /* If the channel doesnt have any users and if a bot isn't already in the channel, join it * NOTE: we use usercount == 1 here as there is one user, but they are about to be destroyed */ - if (this->c->usercount == 1 && !this->HasFlag(CI_INHABIT)) + if (this->c->users.size() == 1 && !this->HasFlag(CI_INHABIT)) { /* If channel was forbidden, etc, set it +si to prevent rejoin */ if (set_modes) |
