X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_userhost.cpp;h=8a0e187fb0a4503b7fdd13e32bc5add9ee924e8d;hb=bcf2e57d8125fceb2f573fe77ac122158aa75a13;hp=6f31ad6a7d1edfb57e62bdf6f828177126f4a64c;hpb=e6fa614ad27cd68aa61605ca0884eee9c44384eb;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_userhost.cpp b/src/cmd_userhost.cpp index 6f31ad6a7..8a0e187fb 100644 --- a/src/cmd_userhost.cpp +++ b/src/cmd_userhost.cpp @@ -11,13 +11,10 @@ * --------------------------------------------------- */ -#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 + " "; } }