summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/operserv/chankill.cpp7
1 files changed, 6 insertions, 1 deletions
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<XLine *>();
- x->SetMask("*@" + uc->user->host);
+ x->SetMask(akillmask);
x->SetBy(source.GetNick());
x->SetExpires(expires);
x->SetReason(realreason);