diff options
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 { |