diff options
-rw-r--r-- | src/cmd_list.cpp | 5 | ||||
-rw-r--r-- | src/modules/m_safelist.cpp | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/cmd_list.cpp b/src/cmd_list.cpp index eaf96c097..3371fc738 100644 --- a/src/cmd_list.cpp +++ b/src/cmd_list.cpp @@ -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 diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp index 6abe2b092..3a0ef37dd 100644 --- a/src/modules/m_safelist.cpp +++ b/src/modules/m_safelist.cpp @@ -205,6 +205,10 @@ class ModuleSafeList : public Module return 1; } + /* Work around mIRC suckyness. YOU SUCK, KHALED! */ + if ((pcnt == 1) && (*parameters[0] == '<')) + pcnt = 0; + time_t* last_list_time; user->GetExt("safelist_last", last_list_time); if (last_list_time) |