]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_list.cpp
InspSocket -> BufferedSocket. Paves the way for a SimpleSocket class which ident...
[user/henk/code/inspircd.git] / src / cmd_list.cpp
index 1a56882934069736321d09b8a97a075d7abf83f1..ff4715becf0f6f0699e9b91e29653d156648b98f 100644 (file)
  * ---------------------------------------------------
  */
 
-#include "inspircd.h"
-#include "users.h"
 #include "inspircd.h"
 #include "commands/cmd_list.h"
 #include "wildcard.h"
 
 /** Handle /LIST
  */
-extern "C" DllExport command_t* init_command(InspIRCd* Instance)
+extern "C" DllExport Command* init_command(InspIRCd* Instance)
 {
        return new cmd_list(Instance);
 }
 
-CmdResult cmd_list::Handle (const char** parameters, int pcnt, userrec *user)
+CmdResult cmd_list::Handle (const char** parameters, int pcnt, User *user)
 {
        int minusers = 0, maxusers = 0;
 
@@ -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)