From c60b56b9d6cbfb192db307323b3c15987d56eaab Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 25 Feb 2016 18:15:18 +0100 Subject: core_userhost Send numeric with User::WriteNumeric() --- src/coremods/core_userhost.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/coremods') 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& 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& parameters, U } } - user->WriteServ(retbuf); + user->WriteNumeric(302, retbuf); return CMD_SUCCESS; } -- cgit v1.2.3