diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-02-25 18:15:18 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-02-25 18:15:18 +0100 |
commit | c60b56b9d6cbfb192db307323b3c15987d56eaab (patch) | |
tree | 8b9114202ea493fcfcf492d816cfcaac47ecfdb7 /src | |
parent | 34cb5b67fb5a1e0fddc04c00fc91092decef80b4 (diff) |
core_userhost Send numeric with User::WriteNumeric()
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_userhost.cpp | 4 |
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; } |