]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_list.cpp
Shut up, valgrind
[user/henk/code/inspircd.git] / src / cmd_list.cpp
index 1a56882934069736321d09b8a97a075d7abf83f1..1e994965b211af2961435a0f007e70f552aa8d9a 100644 (file)
@@ -11,8 +11,6 @@
  * ---------------------------------------------------
  */
 
-#include "inspircd.h"
-#include "users.h"
 #include "inspircd.h"
 #include "commands/cmd_list.h"
 #include "wildcard.h"
@@ -71,7 +69,7 @@ CmdResult cmd_list::Handle (const char** parameters, int pcnt, userrec *user)
                }
                else
                {
-                       if (((!(i->second->IsModeSet('p'))) && (!(i->second->IsModeSet('p')))) || (n))
+                       if (((!(i->second->IsModeSet('p'))) && (!(i->second->IsModeSet('s')))) || (n))
                        {
                                long users = i->second->GetUserCounter();
                                if (users)