From 59643d29385fd4fbfed7a5720e90e2c9ffd1fd21 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 10 Feb 2008 14:28:01 +0000 Subject: Correctly rewrite bans in 1.2 also, and make zline on nicks actually work. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8873 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_zline.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/commands/cmd_zline.cpp') diff --git a/src/commands/cmd_zline.cpp b/src/commands/cmd_zline.cpp index bc71b9e1e..a9f76a932 100644 --- a/src/commands/cmd_zline.cpp +++ b/src/commands/cmd_zline.cpp @@ -32,6 +32,13 @@ CmdResult CommandZline::Handle (const char** parameters, int pcnt, User *user) return CMD_FAILURE; } + User *u = ServerInstance->FindNick(parameters[0]); + + if (u) + { + parameters[0] = u->GetIPString(); + } + if (ServerInstance->IPMatchesEveryone(parameters[0],user)) return CMD_FAILURE; -- cgit v1.2.3