diff options
author | Sadie Powell <sadie@witchery.services> | 2025-04-15 14:44:41 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-04-15 15:00:25 +0100 |
commit | 5c2fc1ceddd808df93e1aa477e5ddd7cc268f4a7 (patch) | |
tree | e61d15bf3b1e44a191a8c652c7c6700e189da79e /modules/botserv/botserv.cpp | |
parent | d891f2bcbd1152a3845ea092e8233cd13e5624f8 (diff) |
Allow clearing other list modes using ClearBans.
Diffstat (limited to 'modules/botserv/botserv.cpp')
-rw-r--r-- | modules/botserv/botserv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/botserv/botserv.cpp b/modules/botserv/botserv.cpp index 6478161bf..cd9d7f7ae 100644 --- a/modules/botserv/botserv.cpp +++ b/modules/botserv/botserv.cpp @@ -57,10 +57,10 @@ public: BotInfo *bi = user->server == Me ? dynamic_cast<BotInfo *>(user) : NULL; if (bi && Config->GetModule(this).Get<bool>("smartjoin")) { - if (IRCD->CanClearBans) + if (IRCD->CanClearModes.count("BAN")) { // We can ask the IRCd to clear bans. - IRCD->SendClearBans(bi, c, bi); + IRCD->SendClearModes(bi, c, bi, "BAN"); } else { |