1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 06:26:37 +02:00

Allow clearing other list modes using ClearBans.

This commit is contained in:
Sadie Powell
2025-04-15 14:44:41 +01:00
parent d891f2bcbd
commit 5c2fc1cedd
5 changed files with 42 additions and 25 deletions
+2 -2
View File
@@ -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
{