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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user