From 3d563fec88789591d82b8ffd1a75f8b55b61c604 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 25 May 2007 16:06:48 +0000 Subject: Fix for /list glob bug in core LIST reported by HiroP, bug #304 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7134 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3