]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_userhost.cpp
Debug to try figure this out ..
[user/henk/code/inspircd.git] / src / cmd_userhost.cpp
index 6f31ad6a7d1edfb57e62bdf6f828177126f4a64c..8a0e187fb0a4503b7fdd13e32bc5add9ee924e8d 100644 (file)
  * ---------------------------------------------------
  */
 
-#include "users.h"
 #include "inspircd.h"
 #include "commands/cmd_userhost.h"
 
-
-
-extern "C" command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport command_t* init_command(InspIRCd* Instance)
 {
        return new cmd_userhost(Instance);
 }
@@ -33,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))
                        {
@@ -54,6 +51,8 @@ CmdResult cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user
                        {
                                retbuf = retbuf + u->dhost;
                        }
+
+                       retbuf = retbuf + " ";
                }
        }