summaryrefslogtreecommitdiff
path: root/modules/commands/os_akill.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/os_akill.cpp')
-rw-r--r--modules/commands/os_akill.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/commands/os_akill.cpp b/modules/commands/os_akill.cpp
index 0b8bd35fc..d5b9b6e70 100644
--- a/modules/commands/os_akill.cpp
+++ b/modules/commands/os_akill.cpp
@@ -151,6 +151,11 @@ class CommandOSAKill : public Command
source.Reply(_("\002{0}\002 coverage is too wide; Please use a more specific mask."), mask);
return;
}
+ else if (mask.find('@') == Anope::string::npos)
+ {
+ source.Reply(_("Mask must be in the form \037user\037@\037host\037."));
+ return;
+ }
if (Config->GetModule("operserv")->Get<bool>("addakiller", "yes") && !source.GetNick().empty())
reason = "[" + source.GetNick() + "] " + reason;