diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-25 16:09:13 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-05-25 16:09:13 +0000 |
commit | 661a6bf0710d9a8b36c719b20ccce18f90a2b785 (patch) | |
tree | b67929d8f27f7e001980158dea2f81b5b168d0ec /src | |
parent | 3d563fec88789591d82b8ffd1a75f8b55b61c604 (diff) |
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')
-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); |