diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_list.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_list.cpp b/src/cmd_list.cpp index ab073b9e8..566055dbe 100644 --- a/src/cmd_list.cpp +++ b/src/cmd_list.cpp @@ -56,7 +56,7 @@ 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])))) + if ((pcnt && (!match(i->second->name, parameters[0])) || (*i->second->topic && !match(i->second->topic, parameters[0])))) continue; // if the channel is not private/secret, OR the user is on the channel anyway |