From ad9c7a10faaa190f40daa2516286813c5784a841 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 10 Sep 2006 13:20:01 +0000 Subject: Change a fux into a fix for pippjin (thanks for the bt) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5194 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_safelist.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp index 831ddcac5..3a5d09c36 100644 --- a/src/modules/m_safelist.cpp +++ b/src/modules/m_safelist.cpp @@ -100,10 +100,11 @@ class ListTimer : public InspTimer chan = ServerInstance->GetChannelIndex(ld->list_position); /* spool details */ bool has_user = (chan && chan->HasUser(u)); - if (!match(chan->name, ld->glob.c_str())) - continue; if ((chan) && (((!(chan->modes[CM_PRIVATE])) && (!(chan->modes[CM_SECRET]))) || (has_user))) { + if (!match(chan->name, ld->glob.c_str())) + continue; + long users = chan->GetUserCounter(); if (users) { -- cgit v1.2.3