From 2af1c0a5e9ee1b7f8438aed2174e2b8776a276b4 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Sun, 22 Mar 2009 01:31:43 +0000 Subject: [PATCH] Backport of bugfix for bug #1043 from SVN r2178, patch from Adam, CS LIST will no longer show suspended channels to normal users. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/stable@2181 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/cs_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cs_list.c b/src/core/cs_list.c index 29c3513b6..d0b9ad9eb 100644 --- a/src/core/cs_list.c +++ b/src/core/cs_list.c @@ -154,7 +154,7 @@ int do_list(User * u) for (i = 0; i < 256; i++) { for (ci = chanlists[i]; ci; ci = ci->next) { if (!is_servadmin && ((ci->flags & CI_PRIVATE) - || (ci->flags & CI_VERBOTEN))) + || (ci->flags & CI_VERBOTEN) || (ci->flags & CI_SUSPENDED))) continue; if ((matchflags != 0) && !(ci->flags & matchflags)) continue;