diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-06 18:43:58 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-06 18:43:58 +0000 |
commit | 296661c5c59e9ea939cb8246530ca5c15af273d9 (patch) | |
tree | ef4f96167ac17e3499f8c69385d647016997c7b7 /src/cmd_kline.cpp | |
parent | 20907e9c0d1da04708a07257b014b139cfb26ca3 (diff) |
Check for people with lack of clue putting "!" in gline/kline/zline masks :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6747 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_kline.cpp')
-rw-r--r-- | src/cmd_kline.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd_kline.cpp b/src/cmd_kline.cpp index de1cb8366..3d81ecf4d 100644 --- a/src/cmd_kline.cpp +++ b/src/cmd_kline.cpp @@ -36,6 +36,11 @@ CmdResult cmd_kline::Handle (const char** parameters, int pcnt, userrec *user) user->WriteServ("NOTICE %s :*** K-Line must contain a username, e.g. *@%s",user->nick,parameters[0]); return CMD_FAILURE; } + else if (strchr(parameters[0],'!')) + { + user->WriteServ("NOTICE %s :*** K-Line cannot contain a nickname!",user->nick); + return CMD_FAILURE; + } if (ServerInstance->XLines->add_kline(ServerInstance->Duration(parameters[1]),user->nick,parameters[2],parameters[0])) { |