summaryrefslogtreecommitdiff
path: root/modules/commands/os_akill.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-04-24 01:38:45 -0400
committerAdam <Adam@anope.org>2014-04-24 01:38:45 -0400
commit00b2cc9ce6b9e4d4869d986ada1cf64d22b95455 (patch)
treeb40f63b8f09e1369777c163a2c7cbf7ea13cc15f /modules/commands/os_akill.cpp
parentd52cc7bcbcf9b99a58eedc823418a91f85e8cab9 (diff)
Require at least user@host format for akills. Fix XLine::GetHost() not returning anything if an xline only has a host
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 c81a6b515..af8573752 100644
--- a/modules/commands/os_akill.cpp
+++ b/modules/commands/os_akill.cpp
@@ -160,6 +160,11 @@ class CommandOSAKill : public Command
source.Reply(USERHOST_MASK_TOO_WIDE, mask.c_str());
return;
}
+ else if (mask.find('@') == Anope::string::npos)
+ {
+ source.Reply(BAD_USERHOST_MASK);
+ return;
+ }
if (Config->GetModule("operserv")->Get<bool>("addakiller", "yes") && !source.GetNick().empty())
reason = "[" + source.GetNick() + "] " + reason;