From 6456dd12983daf4ac2fb26a6faeb89fa9fd32d4c Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 14 Dec 2005 02:37:04 +0000 Subject: Use our shiny new IS_LOCAL() macro, and add a query. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2389 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/userprocess.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/userprocess.cpp b/src/userprocess.cpp index 079d5a43d..551573fed 100644 --- a/src/userprocess.cpp +++ b/src/userprocess.cpp @@ -322,11 +322,11 @@ bool DoBackgroundUserStuff(time_t TIME) if ((long)curr == -1) return false; - if ((curr) && (curr->fd != 0)) + if ((curr) && (curr->fd != 0)) /* XXX - why are we checking fd != 0? --w00t */ { int currfd = curr->fd; // we don't check the state of remote users. - if ((currfd != -1) && (currfd != FD_MAGIC_NUMBER)) + if (IS_LOCAL(curr)) { curr->FlushWriteBuf(); if (curr->GetWriteError() != "") -- cgit v1.2.3