]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_list.cpp
Whoops, make /stats s work
[user/henk/code/inspircd.git] / src / cmd_list.cpp
index a5f5ed75fdc61d52e2112325cdde78de1eeb7fb4..3371fc738b96dfb371172bda9f9f741da8054845 100644 (file)
@@ -19,8 +19,8 @@
 #include "commands/cmd_list.h"
 #include "wildcard.h"
 
-
-
+/** Handle /LIST
+ */
 extern "C" command_t* init_command(InspIRCd* Instance)
 {
        return new cmd_list(Instance);
@@ -29,6 +29,11 @@ extern "C" command_t* init_command(InspIRCd* Instance)
 CmdResult cmd_list::Handle (const char** parameters, int pcnt, userrec *user)
 {
        user->WriteServ("321 %s Channel :Users Name",user->nick);
+
+       /* Work around mIRC suckyness. YOU SUCK, KHALED! */
+       if ((pcnt == 1) && (*parameters[0] == '<'))
+               pcnt = 0;
+
        for (chan_hash::const_iterator i = ServerInstance->chanlist.begin(); i != ServerInstance->chanlist.end(); i++)
        {
                // attempt to match a glob pattern