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/sync.cpp | |
parent | 286bffa2cd6a3f564334c5a4669ea3aadfb27a0a (diff) |
No longer expose c->ci and ci->c
Diffstat (limited to 'modules/chanserv/sync.cpp')
-rw-r--r-- | modules/chanserv/sync.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/chanserv/sync.cpp b/modules/chanserv/sync.cpp index 117003577..0ff7ebdd0 100644 --- a/modules/chanserv/sync.cpp +++ b/modules/chanserv/sync.cpp @@ -39,7 +39,8 @@ class CommandCSSync : public Command return; } - if (ci->c == NULL) + Channel *c = ci->GetChannel(); + if (c == nullptr) { source.Reply(_("Channel \002{0}\002 doesn't exist."), ci->GetName()); return; @@ -53,8 +54,8 @@ class CommandCSSync : public Command logger.Command(source, ci, _("{source} used {command} on {channel}")); - for (Channel::ChanUserList::iterator it = ci->c->users.begin(), it_end = ci->c->users.end(); it != it_end; ++it) - ci->c->SetCorrectModes(it->second->user, true); + for (Channel::ChanUserList::iterator it = c->users.begin(), it_end = c->users.end(); it != it_end; ++it) + c->SetCorrectModes(it->second->user, true); source.Reply(_("All user modes on \002{0}\002 have been synced.")); } |