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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user