mirror of
https://github.com/anope/anope.git
synced 2026-07-07 23:23:13 +02:00
chankill: don't add duplicate akills
This commit is contained in:
@@ -76,7 +76,11 @@ class CommandOSChanKill : public Command
|
||||
if (uc->user->server == Me || uc->user->HasMode("OPER"))
|
||||
continue;
|
||||
|
||||
XLine *x = new XLine("*@" + uc->user->host, source.GetNick(), expires, realreason, XLineManager::GenerateUID());
|
||||
Anope::string akillmask = "*@" + uc->user->host;
|
||||
if (akills->HasEntry(akillmask))
|
||||
continue;
|
||||
|
||||
XLine *x = new XLine(akillmask, source.GetNick(), expires, realreason, XLineManager::GenerateUID());
|
||||
akills->AddXLine(x);
|
||||
akills->OnMatch(uc->user, x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user