diff options
Diffstat (limited to 'src/cmd_gline.cpp')
-rw-r--r-- | src/cmd_gline.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd_gline.cpp b/src/cmd_gline.cpp index b5e361e82..39118c369 100644 --- a/src/cmd_gline.cpp +++ b/src/cmd_gline.cpp @@ -36,6 +36,11 @@ CmdResult cmd_gline::Handle (const char** parameters, int pcnt, userrec *user) user->WriteServ("NOTICE %s :*** G-Line must contain a username, e.g. *@%s",user->nick,parameters[0]); return CMD_FAILURE; } + else if (strchr(parameters[0],'!')) + { + user->WriteServ("NOTICE %s :*** G-Line cannot contain a nickname!",user->nick); + return CMD_FAILURE; + } if (ServerInstance->XLines->add_gline(ServerInstance->Duration(parameters[1]),user->nick,parameters[2],parameters[0])) { |