From 3b43fd186b33d02455a63e1ec29ce8cf5969ecc6 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 10 Feb 2008 00:53:05 +0000 Subject: 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/trunk/inspircd@8866 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_kline.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/commands/cmd_kline.cpp') diff --git a/src/commands/cmd_kline.cpp b/src/commands/cmd_kline.cpp index 5efd6e2e4..50f9ebf08 100644 --- a/src/commands/cmd_kline.cpp +++ b/src/commands/cmd_kline.cpp @@ -39,14 +39,9 @@ CmdResult CommandKline::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 :*** K-Line must contain a username, e.g. *@%s",user->nick,parameters[0]); - return CMD_FAILURE; - } - else if (strchr(parameters[0],'!')) + if (strchr(parameters[0],'!')) { - user->WriteServ("NOTICE %s :*** K-Line cannot contain a nickname!",user->nick); + user->WriteServ("NOTICE %s :*** K-Line cannot operate on nick!user@host masks",user->nick); return CMD_FAILURE; } -- cgit v1.3.1-10-gc9f91