]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_userhost.cpp
Fixed an issue that could cause empty parameters in module commands to not be sent...
[user/henk/code/inspircd.git] / src / cmd_userhost.cpp
index 3fb495704cacb9248fc77f428711a791518dec13..8a0e187fb0a4503b7fdd13e32bc5add9ee924e8d 100644 (file)
@@ -12,7 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "users.h"
 #include "commands/cmd_userhost.h"
 
 extern "C" DllExport command_t* init_command(InspIRCd* Instance)
@@ -31,7 +30,7 @@ CmdResult cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user
 
                if ((u) && (u->registered == REG_ALL))
                {
-                       retbuf = retbuf + " ";
+                       retbuf = retbuf + u->nick;
 
                        if (IS_OPER(u))
                        {
@@ -52,6 +51,8 @@ CmdResult cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user
                        {
                                retbuf = retbuf + u->dhost;
                        }
+
+                       retbuf = retbuf + " ";
                }
        }