diff options
author | Adam <Adam@anope.org> | 2017-10-07 21:10:47 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-10-07 21:10:47 -0400 |
commit | 2312f1fbd06ac01bb55e1d99070cde05a09a5a17 (patch) | |
tree | 69239628ed39e342650574f93d441f58d6d82b7b /modules/chanserv/access.cpp | |
parent | 286bffa2cd6a3f564334c5a4669ea3aadfb27a0a (diff) |
No longer expose c->ci and ci->c
Diffstat (limited to 'modules/chanserv/access.cpp')
-rw-r--r-- | modules/chanserv/access.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/chanserv/access.cpp b/modules/chanserv/access.cpp index c68af6e6f..32a6422cb 100644 --- a/modules/chanserv/access.cpp +++ b/modules/chanserv/access.cpp @@ -344,8 +344,8 @@ class CommandCSAccess : public Command ChanServ::ChanAccess *access = ci->GetAccess(number - 1); Anope::string timebuf; - if (ci->c) - for (Channel::ChanUserList::const_iterator cit = ci->c->users.begin(), cit_end = ci->c->users.end(); cit != cit_end; ++cit) + if (Channel *c = ci->GetChannel()) + for (Channel::ChanUserList::const_iterator cit = c->users.begin(), cit_end = c->users.end(); cit != cit_end; ++cit) { if (access->Matches(cit->second->user, cit->second->user->Account())) timebuf = "Now"; @@ -378,8 +378,8 @@ class CommandCSAccess : public Command continue; Anope::string timebuf; - if (ci->c) - for (Channel::ChanUserList::const_iterator cit = ci->c->users.begin(), cit_end = ci->c->users.end(); cit != cit_end; ++cit) + if (Channel *c = ci->GetChannel()) + for (Channel::ChanUserList::const_iterator cit = c->users.begin(), cit_end = c->users.end(); cit != cit_end; ++cit) { if (access->Matches(cit->second->user, cit->second->user->Account())) timebuf = "Now"; |