diff options
| author | 2007-05-25 16:09:13 +0000 | |
|---|---|---|
| committer | 2007-05-25 16:09:13 +0000 | |
| commit | 661a6bf0710d9a8b36c719b20ccce18f90a2b785 (patch) | |
| tree | b67929d8f27f7e001980158dea2f81b5b168d0ec /src/cmd_list.cpp | |
| parent | Fix for /list glob bug in core LIST reported by HiroP, bug #304 (diff) | |
| download | inspircd++-661a6bf0710d9a8b36c719b20ccce18f90a2b785.tar.gz inspircd++-661a6bf0710d9a8b36c719b20ccce18f90a2b785.tar.bz2 inspircd++-661a6bf0710d9a8b36c719b20ccce18f90a2b785.zip | |
Initial fix wasnt working, and was a mess. Lets try this again.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7135 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_list.cpp')
| -rw-r--r-- | src/cmd_list.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd_list.cpp b/src/cmd_list.cpp index 566055dbe..ed956e7f1 100644 --- a/src/cmd_list.cpp +++ b/src/cmd_list.cpp @@ -56,8 +56,11 @@ CmdResult cmd_list::Handle (const char** parameters, int pcnt, userrec *user) if (too_many || too_few) continue; - if ((pcnt && (!match(i->second->name, parameters[0])) || (*i->second->topic && !match(i->second->topic, parameters[0])))) - continue; + if (pcnt) + { + if (!match(i->second->name, parameters[0]) && !match(i->second->topic, parameters[0])) + continue; + } // if the channel is not private/secret, OR the user is on the channel anyway bool n = i->second->HasUser(user); |
