summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-02-25 18:17:02 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-02-25 18:17:02 +0100
commit79cb679749517648ad3729d973fe90cd9346d752 (patch)
treef97b3a70ae673c98a4891205ba96a14828a19bd2
parentc60b56b9d6cbfb192db307323b3c15987d56eaab (diff)
m_userip Send numeric with User::WriteNumeric()
-rw-r--r--src/modules/m_userip.cpp4
1 files changed, 2 insertions, 2 deletions
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<std::string> &parameters, 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;
}