1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 19:33:12 +02:00

Use the same object for chanusercontainer and userchancontainer

This commit is contained in:
Adam
2012-12-28 10:37:54 -05:00
parent 379b2ccf92
commit b591e8cdc8
33 changed files with 116 additions and 133 deletions
+2 -2
View File
@@ -325,7 +325,7 @@ class CommandCSAccess : public Command
Anope::string timebuf;
if (ci->c)
for (CUserList::const_iterator cit = ci->c->users.begin(), cit_end = ci->c->users.end(); cit != cit_end; ++cit)
for (Channel::ChanUserList::const_iterator cit = ci->c->users.begin(), cit_end = ci->c->users.end(); cit != cit_end; ++cit)
if (access->Matches((*cit)->user, (*cit)->user->Account()))
timebuf = "Now";
if (timebuf.empty())
@@ -359,7 +359,7 @@ class CommandCSAccess : public Command
Anope::string timebuf;
if (ci->c)
for (CUserList::const_iterator cit = ci->c->users.begin(), cit_end = ci->c->users.end(); cit != cit_end; ++cit)
for (Channel::ChanUserList::const_iterator cit = ci->c->users.begin(), cit_end = ci->c->users.end(); cit != cit_end; ++cit)
if (access->Matches((*cit)->user, (*cit)->user->Account()))
timebuf = "Now";
if (timebuf.empty())