From 79cb679749517648ad3729d973fe90cd9346d752 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 25 Feb 2016 18:17:02 +0100 Subject: m_userip Send numeric with User::WriteNumeric() --- src/modules/m_userip.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp index 1b2ce9b13..27f5fb17c 100644 --- a/src/modules/m_userip.cpp +++ b/src/modules/m_userip.cpp @@ -33,7 +33,7 @@ class CommandUserip : public Command CmdResult Handle (const std::vector ¶meters, User *user) { - std::string retbuf = "340 " + user->nick + " :"; + std::string retbuf; int nicks = 0; bool checked_privs = false; bool has_privs = false; @@ -70,7 +70,7 @@ class CommandUserip : public Command } if (nicks != 0) - user->WriteServ(retbuf); + user->WriteNumeric(340, retbuf); return CMD_SUCCESS; } -- cgit v1.2.3