From 945dda108992cdfc83cf714a89ded949357ce125 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 9 Mar 2006 00:18:20 +0000 Subject: Wrong var used here, oooops git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3569 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_safelist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_safelist.cpp') diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp index 64f073386..09e7dc183 100644 --- a/src/modules/m_safelist.cpp +++ b/src/modules/m_safelist.cpp @@ -97,7 +97,7 @@ class ListTimer : public InspTimer WriteServ(u->fd,"321 %s Channel :Users Name",u->nick); chan = Srv->GetChannelIndex(ld->list_position); /* spool details */ - bool has_user = (u && chan->HasUser(u)); + bool has_user = (chan && chan->HasUser(u)); if ((chan) && (((!(chan->binarymodes & CM_PRIVATE)) && (!(chan->binarymodes & CM_SECRET))) || (has_user))) { /* Increment total plus linefeed */ -- cgit v1.2.3