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/botserv/botserv.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/botserv/botserv.cpp')
-rw-r--r-- | modules/botserv/botserv.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/botserv/botserv.cpp b/modules/botserv/botserv.cpp index 99e2c9134..2b251b67b 100644 --- a/modules/botserv/botserv.cpp +++ b/modules/botserv/botserv.cpp @@ -196,15 +196,15 @@ public: } } - EventReturn OnChannelModeSet(Channel *c, MessageSource &source, ChannelMode *mode, const Anope::string ¶m) override + EventReturn OnChannelModeSet(Channel *c, MessageSource &source, ChannelMode *mode, const ModeData &data) override { if (source.GetUser() && !source.GetBot() && Config->GetModule(this).Get<bool>("smartjoin") && mode->name == "BAN" && c->ci && c->ci->bi && c->FindUser(c->ci->bi)) { BotInfo *bi = c->ci->bi; - Entry ban("BAN", param); + Entry ban("BAN", data.value); if (ban.Matches(bi)) - c->RemoveMode(bi, "BAN", param); + c->RemoveMode(bi, "BAN", data.value); } return EVENT_CONTINUE; |