From 661a6bf0710d9a8b36c719b20ccce18f90a2b785 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 25 May 2007 16:09:13 +0000 Subject: 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 --- src/cmd_list.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/cmd_list.cpp') 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); -- cgit v1.3.1-10-gc9f91