]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Show the IP address only in zline added messages if *@ip was supplied.
authordz <dz@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 14 Mar 2009 15:12:37 +0000 (15:12 +0000)
committerdz <dz@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 14 Mar 2009 15:12:37 +0000 (15:12 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11221 e03df62e-2008-0410-955e-edbf42e46eb7

src/commands/cmd_zline.cpp

index fa54590e2f464ee6cfac751d6600180b3cac8bae..8e2bdbc9d70b8446603ec691756b5f7df064d151 100644 (file)
@@ -60,12 +60,12 @@ CmdResult CommandZline::Handle (const std::vector<std::string>& 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<std::string>& 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