summaryrefslogtreecommitdiff
path: root/modules/botserv/botserv.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-05-03 17:07:07 +0100
committerSadie Powell <sadie@witchery.services>2025-05-03 21:28:56 +0100
commit010beb52b1f3c697a07f9a130d2ed9335fe1cd98 (patch)
tree734750a5677afff443f2117dc34ba14d3351fb28 /modules/botserv/botserv.cpp
parentc95594141346ef6fb65a5af177bed35ed865234d (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.cpp6
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 &param) 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;