From bb05c949728ec908c87cd7611239cf8e40cec317 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 10 Feb 2008 00:55:00 +0000 Subject: Backport r8866: make K|G|Z|ELine actually work with a nickname target (code was there but not functional) git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8867 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_gline.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/cmd_gline.cpp') diff --git a/src/cmd_gline.cpp b/src/cmd_gline.cpp index 07b60f250..42d6f861c 100644 --- a/src/cmd_gline.cpp +++ b/src/cmd_gline.cpp @@ -33,14 +33,9 @@ CmdResult cmd_gline::Handle (const char** parameters, int pcnt, userrec *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; } -- cgit v1.3.1-10-gc9f91