summaryrefslogtreecommitdiff
path: root/modules/helpchan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/helpchan.cpp')
-rw-r--r--modules/helpchan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/helpchan.cpp b/modules/helpchan.cpp
index 1854b78c7..80e4c1a30 100644
--- a/modules/helpchan.cpp
+++ b/modules/helpchan.cpp
@@ -16,11 +16,11 @@ public:
{
}
- EventReturn OnChannelModeSet(Channel *c, MessageSource &, ChannelMode *mode, const Anope::string &param) override
+ EventReturn OnChannelModeSet(Channel *c, MessageSource &, ChannelMode *mode, const ModeData &data) override
{
if (mode->name == "OP" && c && c->ci && c->name.equals_ci(Config->GetModule(this).Get<const Anope::string>("helpchannel")))
{
- User *u = User::Find(param);
+ User *u = User::Find(data.value);
if (u && c->ci->AccessFor(u).HasPriv("OPME"))
u->SetMode(Config->GetClient("OperServ"), "HELPOP");