summaryrefslogtreecommitdiff
path: root/src/commands/cmd_gline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/cmd_gline.cpp')
-rw-r--r--src/commands/cmd_gline.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/commands/cmd_gline.cpp b/src/commands/cmd_gline.cpp
index 929bccf9f..37a15c210 100644
--- a/src/commands/cmd_gline.cpp
+++ b/src/commands/cmd_gline.cpp
@@ -39,14 +39,9 @@ CmdResult CommandGline::Handle (const char** parameters, int pcnt, User *user)
if (ServerInstance->HostMatchesEveryone(ih.first+"@"+ih.second,user))
return CMD_FAILURE;
- if (!strchr(parameters[0],'@'))
- {
- 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);
+ user->WriteServ("NOTICE %s :*** G-Line cannot operate on nick!user@host masks",user->nick);
return CMD_FAILURE;
}