]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_ison.cpp
Add length checking to GetExtBanStatus and m_banexception.
[user/henk/code/inspircd.git] / src / commands / cmd_ison.cpp
index 227f1b3edebb10d06b94ecedec271e6f8f00b5d6..01d12e13bd14149a80f20fda18128cf5d1463988 100644 (file)
@@ -56,7 +56,7 @@ CmdResult CommandIson::Handle (const std::vector<std::string>& parameters, User
                if (ison_already.find(u) != ison_already.end())
                        continue;
 
-               if (u)
+               if ((u) && (u->registered == REG_ALL))
                {
                        reply.append(u->nick).append(" ");
                        if (reply.length() > 450)
@@ -81,7 +81,7 @@ CmdResult CommandIson::Handle (const std::vector<std::string>& parameters, User
                                        if (ison_already.find(u) != ison_already.end())
                                                continue;
 
-                                       if (u)
+                                       if ((u) && (u->registered == REG_ALL))
                                        {
                                                reply.append(u->nick).append(" ");
                                                if (reply.length() > 450)