From 5c2fc1ceddd808df93e1aa477e5ddd7cc268f4a7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 15 Apr 2025 14:44:41 +0100 Subject: Allow clearing other list modes using ClearBans. --- modules/botserv/botserv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/botserv') 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(user) : NULL; if (bi && Config->GetModule(this).Get("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 { -- cgit