1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 13:33:13 +02:00

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
This commit is contained in:
cyberbotx
2009-03-22 01:31:43 +00:00
parent 08c8a883ef
commit 2af1c0a5e9
+1 -1
View File
@@ -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;