summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-02-25 18:15:18 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-02-25 18:15:18 +0100
commitc60b56b9d6cbfb192db307323b3c15987d56eaab (patch)
tree8b9114202ea493fcfcf492d816cfcaac47ecfdb7 /src
parent34cb5b67fb5a1e0fddc04c00fc91092decef80b4 (diff)
core_userhost Send numeric with User::WriteNumeric()
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_userhost.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coremods/core_userhost.cpp b/src/coremods/core_userhost.cpp
index eae6e51ce..14750ef60 100644
--- a/src/coremods/core_userhost.cpp
+++ b/src/coremods/core_userhost.cpp
@@ -47,7 +47,7 @@ CmdResult CommandUserhost::Handle (const std::vector<std::string>& parameters, U
{
const bool has_privs = user->HasPrivPermission("users/auspex");
- std::string retbuf = "302 " + user->nick + " :";
+ std::string retbuf;
unsigned int max = parameters.size();
if (max > 5)
@@ -77,7 +77,7 @@ CmdResult CommandUserhost::Handle (const std::vector<std::string>& parameters, U
}
}
- user->WriteServ(retbuf);
+ user->WriteNumeric(302, retbuf);
return CMD_SUCCESS;
}