From af90868aa951ced0a86132421d20a5cde8cfdea9 Mon Sep 17 00:00:00 2001 From: dz Date: Sat, 14 Mar 2009 15:12:37 +0000 Subject: Show the IP address only in zline added messages if *@ip was supplied. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11221 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_zline.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/cmd_zline.cpp b/src/commands/cmd_zline.cpp index fa54590e2..8e2bdbc9d 100644 --- a/src/commands/cmd_zline.cpp +++ b/src/commands/cmd_zline.cpp @@ -60,12 +60,12 @@ CmdResult CommandZline::Handle (const std::vector& parameters, User { if (!duration) { - ServerInstance->SNO->WriteToSnoMask('x',"%s added permanent Z-line for %s: %s", user->nick.c_str(), target.c_str(), parameters[2].c_str()); + ServerInstance->SNO->WriteToSnoMask('x',"%s added permanent Z-line for %s: %s", user->nick.c_str(), ipaddr, parameters[2].c_str()); } else { time_t c_requires_crap = duration + ServerInstance->Time(); - ServerInstance->SNO->WriteToSnoMask('x',"%s added timed Z-line for %s, expires on %s: %s",user->nick.c_str(),target.c_str(), + ServerInstance->SNO->WriteToSnoMask('x',"%s added timed Z-line for %s, expires on %s: %s",user->nick.c_str(),ipaddr, ServerInstance->TimeString(c_requires_crap).c_str(), parameters[2].c_str()); } ServerInstance->XLines->ApplyLines(); @@ -73,7 +73,7 @@ CmdResult CommandZline::Handle (const std::vector& parameters, User else { delete zl; - user->WriteServ("NOTICE %s :*** Z-Line for %s already exists",user->nick.c_str(),target.c_str()); + user->WriteServ("NOTICE %s :*** Z-Line for %s already exists",user->nick.c_str(),ipaddr); } } else -- cgit v1.2.3