From 2312f1fbd06ac01bb55e1d99070cde05a09a5a17 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 7 Oct 2017 21:10:47 -0400 Subject: No longer expose c->ci and ci->c --- modules/helpchan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/helpchan.cpp') 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("helpchannel"))) + if (mode->name == "OP" && c && c->GetChannel() && c->name.equals_ci(Config->GetModule(this)->Get("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"); } -- cgit