summaryrefslogtreecommitdiff
path: root/src/cmd_zline.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-06 18:43:58 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-06 18:43:58 +0000
commit296661c5c59e9ea939cb8246530ca5c15af273d9 (patch)
treeef4f96167ac17e3499f8c69385d647016997c7b7 /src/cmd_zline.cpp
parent20907e9c0d1da04708a07257b014b139cfb26ca3 (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_zline.cpp')
-rw-r--r--src/cmd_zline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_zline.cpp b/src/cmd_zline.cpp
index 46d24f3bd..f2b14c5ba 100644
--- a/src/cmd_zline.cpp
+++ b/src/cmd_zline.cpp
@@ -29,9 +29,9 @@ CmdResult cmd_zline::Handle (const char** parameters, int pcnt, userrec *user)
{
if (pcnt >= 3)
{
- if (strchr(parameters[0],'@'))
+ if (strchr(parameters[0],'@') || strchr(parameters[0],'!'))
{
- user->WriteServ("NOTICE %s :*** You cannot include a username in a zline, a zline must ban only an IP mask",user->nick);
+ user->WriteServ("NOTICE %s :*** You cannot include a username or nickname in a zline, a zline must ban only an IP mask",user->nick);
return CMD_FAILURE;
}