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/helpchan.cpp | |
parent | 286bffa2cd6a3f564334c5a4669ea3aadfb27a0a (diff) |
No longer expose c->ci and ci->c
Diffstat (limited to 'modules/helpchan.cpp')
-rw-r--r-- | modules/helpchan.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/helpchan.cpp b/modules/helpchan.cpp index 08a5d22d1..947fbe1d5 100644 --- a/modules/helpchan.cpp +++ b/modules/helpchan.cpp @@ -30,11 +30,11 @@ class HelpChannel : public Module EventReturn OnChannelModeSet(Channel *c, const MessageSource &, ChannelMode *mode, const Anope::string ¶m) override { - if (mode->name == "OP" && c && c->ci && c->name.equals_ci(Config->GetModule(this)->Get<Anope::string>("helpchannel"))) + if (mode->name == "OP" && c && c->GetChannel() && c->name.equals_ci(Config->GetModule(this)->Get<Anope::string>("helpchannel"))) { User *u = User::Find(param); - if (u && c->ci->AccessFor(u).HasPriv("OPME")) + if (u && c->GetChannel()->AccessFor(u).HasPriv("OPME")) u->SetMode(Config->GetClient("OperServ"), "HELPOP"); } |