From d3ac74a575dfc31bcfb15af1ce1e4cc4c30bda3e Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 6 Oct 2016 14:46:16 -0400 Subject: chankill: don't add duplicate akills --- modules/operserv/chankill.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/operserv/chankill.cpp b/modules/operserv/chankill.cpp index ab2a7adad..9ab820821 100644 --- a/modules/operserv/chankill.cpp +++ b/modules/operserv/chankill.cpp @@ -93,8 +93,13 @@ class CommandOSChanKill : public Command if (uc->user->server == Me || uc->user->HasMode("OPER")) continue; + Anope::string akillmask = "*@" + uc->user->host; + + if (akills->HasEntry(akillmask)) + continue; + XLine *x = Serialize::New(); - x->SetMask("*@" + uc->user->host); + x->SetMask(akillmask); x->SetBy(source.GetNick()); x->SetExpires(expires); x->SetReason(realreason); -- cgit