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/unban.cpp | |
parent | 286bffa2cd6a3f564334c5a4669ea3aadfb27a0a (diff) |
No longer expose c->ci and ci->c
Diffstat (limited to 'modules/chanserv/unban.cpp')
-rw-r--r-- | modules/chanserv/unban.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/chanserv/unban.cpp b/modules/chanserv/unban.cpp index 56d13758d..716b2f576 100644 --- a/modules/chanserv/unban.cpp +++ b/modules/chanserv/unban.cpp @@ -46,11 +46,11 @@ class CommandCSUnban : public Command for (ChanServ::Channel *ci : source.GetAccount()->GetRefs<ChanServ::Channel *>()) { - if (!ci->c || !source.AccessFor(ci).HasPriv("UNBAN")) + if (!ci->GetChannel() || !source.AccessFor(ci).HasPriv("UNBAN")) continue; for (unsigned int j = 0; j < modes.size(); ++j) - if (ci->c->Unban(source.GetUser(), modes[j]->name, true)) + if (ci->GetChannel()->Unban(source.GetUser(), modes[j]->name, true)) ++count; } @@ -68,7 +68,7 @@ class CommandCSUnban : public Command return; } - if (ci->c == NULL) + if (ci->GetChannel() == NULL) { source.Reply(_("Channel \002{0}\002 doesn't exist."), ci->GetName()); return; @@ -94,12 +94,12 @@ class CommandCSUnban : public Command logger.Command(source, _("{source} used {command} on {channel} to unban {0}"), u2->nick); for (unsigned i = 0; i < modes.size(); ++i) - ci->c->Unban(u2, modes[i]->name, source.GetUser() == u2); + ci->GetChannel()->Unban(u2, modes[i]->name, source.GetUser() == u2); if (u2 == source.GetUser()) - source.Reply(_("You have been unbanned from \002{0}\002."), ci->c->name); + source.Reply(_("You have been unbanned from \002{0}\002."), ci->GetChannel()->name); else - source.Reply(_("\002{0}\002 has been unbanned from \002{1}\002."), u2->nick, ci->c->name); + source.Reply(_("\002{0}\002 has been unbanned from \002{1}\002."), u2->nick, ci->GetChannel()->name); } bool OnHelp(CommandSource &source, const Anope::string &subcommand) override |