summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/operserv/akill.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/operserv/akill.cpp b/modules/operserv/akill.cpp
index 7e2f0bdf0..9a6a7b271 100644
--- a/modules/operserv/akill.cpp
+++ b/modules/operserv/akill.cpp
@@ -112,9 +112,6 @@ class CommandOSAKill : public Command
if (Config->GetModule("operserv")->Get<bool>("addakiller", "yes") && !source.GetNick().empty())
reason = "[" + source.GetNick() + "] " + reason;
- if (!akills->CanAdd(source, mask, expires, reason))
- return;
-
if (mask.find_first_not_of("/~@.*?") == Anope::string::npos)
{
source.Reply(_("\002{0}\002 coverage is too wide; Please use a more specific mask."), mask);
@@ -127,6 +124,9 @@ class CommandOSAKill : public Command
return;
}
+ if (!akills->CanAdd(source, mask, expires, reason))
+ return;
+
XLine *x = Serialize::New<XLine *>();
x->SetMask(mask);
x->SetBy(source.GetNick());