summaryrefslogtreecommitdiff
path: root/modules/chanserv/ban.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/ban.cpp
parent286bffa2cd6a3f564334c5a4669ea3aadfb27a0a (diff)
No longer expose c->ci and ci->c
Diffstat (limited to 'modules/chanserv/ban.cpp')
-rw-r--r--modules/chanserv/ban.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/chanserv/ban.cpp b/modules/chanserv/ban.cpp
index cd6b70b1f..4e8c0ded7 100644
--- a/modules/chanserv/ban.cpp
+++ b/modules/chanserv/ban.cpp
@@ -61,7 +61,7 @@ class CommandCSBan : public Command
return;
}
- Channel *c = ci->c;
+ Channel *c = ci->GetChannel();
if (c == NULL)
{
source.Reply(_("Channel \002{0}\002 doesn't exist."), ci->GetName());
@@ -213,7 +213,7 @@ class CommandCSBan : public Command
continue;
if (u != uc->user && ci->IsPeace() && u2_access >= u_access)
continue;
- else if (ci->c->MatchesList(uc->user, "EXCEPT"))
+ else if (c->MatchesList(uc->user, "EXCEPT"))
continue;
else if (uc->user->IsProtected())
continue;