]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_userhost.cpp
Change for reverse output of lists, most recent first, for bug #307. Also fix(Oms...
[user/henk/code/inspircd.git] / src / cmd_userhost.cpp
index 363ba611cf833cea6017dc111f2280ac41702bc6..3fb495704cacb9248fc77f428711a791518dec13 100644 (file)
  * ---------------------------------------------------
  */
 
-#include "users.h"
 #include "inspircd.h"
+#include "users.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);
 }
@@ -35,7 +33,7 @@ CmdResult cmd_userhost::Handle (const char** parameters, int pcnt, userrec *user
                {
                        retbuf = retbuf + " ";
 
-                       if (*u->oper)
+                       if (IS_OPER(u))
                        {
                                retbuf = retbuf + "*=+";
                        }
@@ -46,7 +44,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;
                        }