]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_userip.cpp
Fix problem with autoconnects: don't reset NextConnectTime to a higher value than...
[user/henk/code/inspircd.git] / src / modules / m_userip.cpp
index d7c5792e8f066262ed4f75a38d3d75524b2c3ebd..77f3474f936d9c16083c5b0ae26327df7ef234e8 100644 (file)
@@ -35,7 +35,12 @@ class CommandUserip : public Command
                        User *u = ServerInstance->FindNick(parameters[i]);
                        if ((u) && (u->registered == REG_ALL))
                        {
-                               retbuf = retbuf + u->nick + (IS_OPER(u) ? "*" : "") + "=+" + u->ident + "@" + u->GetIPString() + " ";
+                               retbuf = retbuf + u->nick + (IS_OPER(u) ? "*" : "") + "=";
+                               if (IS_AWAY(u))
+                                       retbuf += "-";
+                               else
+                                       retbuf += "+";
+                               retbuf += u->ident + "@" + u->GetIPString() + " ";
                        }
                }
 
@@ -53,7 +58,7 @@ class ModuleUserIP : public Module
        ModuleUserIP(InspIRCd* Me)
                : Module(Me)
        {
-               
+
                mycommand = new CommandUserip(ServerInstance);
                ServerInstance->AddCommand(mycommand);
                Implementation eventlist[] = { I_On005Numeric };
@@ -65,16 +70,16 @@ class ModuleUserIP : public Module
        {
                output = output + std::string(" USERIP");
        }
-       
+
        virtual ~ModuleUserIP()
        {
        }
-       
+
        virtual Version GetVersion()
        {
-               return Version(1,2,0,1,VF_VENDOR,API_VERSION);
+               return Version("$Id$",VF_VENDOR,API_VERSION);
        }
-       
+
 };
 
 MODULE_INIT(ModuleUserIP)