X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_userhost.cpp;h=8a0e187fb0a4503b7fdd13e32bc5add9ee924e8d;hb=9422f4157ccff0482cd70105ada3bd9325455eaa;hp=363ba611cf833cea6017dc111f2280ac41702bc6;hpb=fe04cdd9dc0d504e2a0d8fb74fcf80dc59a051d7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_userhost.cpp b/src/cmd_userhost.cpp index 363ba611c..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,9 +30,9 @@ CmdResult cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user if ((u) && (u->registered == REG_ALL)) { - retbuf = retbuf + " "; + retbuf = retbuf + u->nick; - if (*u->oper) + if (IS_OPER(u)) { retbuf = retbuf + "*=+"; } @@ -46,7 +43,7 @@ CmdResult cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user retbuf = retbuf + u->ident + "@"; - if (*user->oper) + if (IS_OPER(user)) { retbuf = retbuf + u->host; } @@ -54,6 +51,8 @@ CmdResult cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user { retbuf = retbuf + u->dhost; } + + retbuf = retbuf + " "; } }