]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_userhost.cpp
Add a helper function for calling the OnCheckExemption event.
[user/henk/code/inspircd.git] / src / coremods / core_userhost.cpp
index eae6e51ce3f0f3a1eaa2b61f343d57e9edce3652..3100995a82b86c76ebc3e769bf34dda168a13eb6 100644 (file)
@@ -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(RPL_USERHOST, retbuf);
 
        return CMD_SUCCESS;
 }