From dac2e2a853555949567b8d03d6377d1e6a1b00a5 Mon Sep 17 00:00:00 2001 From: special Date: Mon, 30 Jul 2007 19:56:46 +0000 Subject: Fixed a recently introduced bug in cmd_list that would cause secret channels to be shown to all users. Highly recommended that you either hotpatch the /list command or load safelist.. git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@7632 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd_list.cpp') diff --git a/src/cmd_list.cpp b/src/cmd_list.cpp index 1a5688293..c9039b86b 100644 --- a/src/cmd_list.cpp +++ b/src/cmd_list.cpp @@ -71,7 +71,7 @@ CmdResult cmd_list::Handle (const char** parameters, int pcnt, userrec *user) } else { - if (((!(i->second->IsModeSet('p'))) && (!(i->second->IsModeSet('p')))) || (n)) + if (((!(i->second->IsModeSet('p'))) && (!(i->second->IsModeSet('s')))) || (n)) { long users = i->second->GetUserCounter(); if (users) -- cgit v1.3.1-10-gc9f91