]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_check.cpp
Test stuff to fix remote stats brokage
[user/henk/code/inspircd.git] / src / modules / m_check.cpp
index a7d2485eeb771702834493c95cadf732042348e2..44ad82a63129ae863e20e439cf46475f24ca2f11 100644 (file)
@@ -71,7 +71,7 @@ class cmd_check : public command_t
                        if (targuser->oper[0] != 0)
                        {
                                /* user is an oper of type ____ */
-                               user->WriteServ(checkstr + " opertype " + targuser->oper);
+                               user->WriteServ(checkstr + " opertype " + irc::Spacify(targuser->oper));
                        }
                        if (IS_LOCAL(targuser))
                        {
@@ -128,7 +128,7 @@ class cmd_check : public command_t
                        long x = 0;
 
                        /* hostname or other */
-                       for (user_hash::const_iterator a = ServerInstance->clientlist.begin(); a != ServerInstance->clientlist.end(); a++)
+                       for (user_hash::const_iterator a = ServerInstance->clientlist->begin(); a != ServerInstance->clientlist->end(); a++)
                        {
                                if (match(a->second->host, parameters[0]) || match(a->second->dhost, parameters[0]))
                                {
@@ -136,7 +136,7 @@ class cmd_check : public command_t
                                        user->WriteServ(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost());
                                }
                                /* IP address */
-                               else if (match(a->second->GetIPString(), parameters[0]))
+                               else if (match(a->second->GetIPString(), parameters[0], true))
                                {
                                        /* same IP. */
                                        user->WriteServ(checkstr + " match " + ConvToStr(++x) + " " + a->second->GetFullRealHost());