summaryrefslogtreecommitdiff
path: root/modules/chanserv/statusupdate.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-10-07 21:10:47 -0400
committerAdam <Adam@anope.org>2017-10-07 21:10:47 -0400
commit2312f1fbd06ac01bb55e1d99070cde05a09a5a17 (patch)
tree69239628ed39e342650574f93d441f58d6d82b7b /modules/chanserv/statusupdate.cpp
parent286bffa2cd6a3f564334c5a4669ea3aadfb27a0a (diff)
No longer expose c->ci and ci->c
Diffstat (limited to 'modules/chanserv/statusupdate.cpp')
-rw-r--r--modules/chanserv/statusupdate.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/chanserv/statusupdate.cpp b/modules/chanserv/statusupdate.cpp
index 32918f1d3..90586daea 100644
--- a/modules/chanserv/statusupdate.cpp
+++ b/modules/chanserv/statusupdate.cpp
@@ -25,10 +25,11 @@ class StatusUpdate : public Module
{
void ApplyModes(ChanServ::Channel *ci, ChanServ::ChanAccess *access, bool set)
{
- if (ci->c == nullptr)
+ Channel *c = ci->GetChannel();
+ if (c == nullptr)
return;
- for (Channel::ChanUserList::iterator it = ci->c->users.begin(), it_end = ci->c->users.end(); it != it_end; ++it)
+ for (Channel::ChanUserList::iterator it = c->users.begin(), it_end = c->users.end(); it != it_end; ++it)
{
User *user = it->second->user;
@@ -40,11 +41,11 @@ class StatusUpdate : public Module
{
ChannelModeStatus *cms = ModeManager::GetStatusChannelModesByRank()[i];
if (!ag.HasPriv("AUTO" + cms->name))
- ci->c->RemoveMode(NULL, cms, user->GetUID());
+ c->RemoveMode(NULL, cms, user->GetUID());
}
if (set)
- ci->c->SetCorrectModes(user, true);
+ c->SetCorrectModes(user, true);
}
}
}