1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 21:43:13 +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:
Adam-
2010-01-16 06:57:14 +00:00
parent aaf1cefd1c
commit ff13d00eb5
31 changed files with 396 additions and 423 deletions
+9 -7
View File
@@ -531,13 +531,15 @@ int anope_event_fjoin(const char *source, int ac, const char **av)
c->creation_time = ts;
/* Remove status from all of our users */
for (struct c_userlist *cu = c->users; cu; cu = cu->next)
for (CUserList::iterator it = c->users.begin(); it != c->users.end(); ++it)
{
c->RemoveMode(NULL, CMODE_OWNER, cu->user->nick);
c->RemoveMode(NULL, CMODE_PROTECT, cu->user->nick);
c->RemoveMode(NULL, CMODE_OP, cu->user->nick);
c->RemoveMode(NULL, CMODE_HALFOP, cu->user->nick);
c->RemoveMode(NULL, CMODE_VOICE, cu->user->nick);
UserContainer *uc = *it;
c->RemoveMode(NULL, CMODE_OWNER, uc->user->nick);
c->RemoveMode(NULL, CMODE_PROTECT, uc->user->nick);
c->RemoveMode(NULL, CMODE_OP, uc->user->nick);
c->RemoveMode(NULL, CMODE_HALFOP, uc->user->nick);
c->RemoveMode(NULL, CMODE_VOICE, uc->user->nick);
}
if (c->ci)
{
@@ -630,7 +632,7 @@ int anope_event_fjoin(const char *source, int ac, const char **av)
c->UnsetFlag(CH_SYNCING);
/* If there are users in the channel they are allowed to be, set topic mlock etc */
if (c->usercount)
if (!c->users.empty())
c->Sync();
/* If there are no users in the channel, there is a ChanServ timer set to part the service bot
* and destroy the channel soon