summaryrefslogtreecommitdiff
path: root/modules/m_helpchan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/m_helpchan.cpp')
-rw-r--r--modules/m_helpchan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/m_helpchan.cpp b/modules/m_helpchan.cpp
index 7739fbcd5..0a3d68fae 100644
--- a/modules/m_helpchan.cpp
+++ b/modules/m_helpchan.cpp
@@ -14,9 +14,9 @@ class HelpChannel : public Module
{
}
- EventReturn OnChannelModeSet(Channel *c, MessageSource &setter, const Anope::string &mname, const Anope::string &param) anope_override
+ EventReturn OnChannelModeSet(Channel *c, MessageSource &, ChannelMode *mode, const Anope::string &param) anope_override
{
- if (mname == "OP" && c && c->ci && c->name.equals_ci(Config->GetModule(this)->Get<const Anope::string>("helpchannel")))
+ if (mode->name == "OP" && c && c->ci && c->name.equals_ci(Config->GetModule(this)->Get<const Anope::string>("helpchannel")))
{
User *u = User::Find(param);