diff options
author | Sadie Powell <sadie@witchery.services> | 2025-05-03 17:07:07 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-05-03 21:28:56 +0100 |
commit | 010beb52b1f3c697a07f9a130d2ed9335fe1cd98 (patch) | |
tree | 734750a5677afff443f2117dc34ba14d3351fb28 /modules/helpchan.cpp | |
parent | c95594141346ef6fb65a5af177bed35ed865234d (diff) |
Store the setter and ts for all modes and try to restore them.
This is mostly for preserving channel list mode info.
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 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 ¶m) 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"); |