summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-10 13:23:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-10 13:23:22 +0000
commit5cb0e29291121d97c8668dee40af8b9c7a511a01 (patch)
tree7fbb1bd6933d6591e109aa203f6f1a3765e579ab /src
parentad9c7a10faaa190f40daa2516286813c5784a841 (diff)
Nicer fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5195 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_safelist.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp
index 3a5d09c36..77cc0715b 100644
--- a/src/modules/m_safelist.cpp
+++ b/src/modules/m_safelist.cpp
@@ -102,11 +102,10 @@ class ListTimer : public InspTimer
bool has_user = (chan && chan->HasUser(u));
if ((chan) && (((!(chan->modes[CM_PRIVATE])) && (!(chan->modes[CM_SECRET]))) || (has_user)))
{
- if (!match(chan->name, ld->glob.c_str()))
- continue;
+ bool display = match(chan->name, ld->glob.c_str());
long users = chan->GetUserCounter();
- if (users)
+ if ((users) && (display))
{
int counter = snprintf(buffer,MAXBUF,"322 %s %s %ld :[+%s] %s",u->nick,chan->name,users,chan->ChanModes(has_user),chan->topic);
/* Increment total plus linefeed */