summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 02:37:04 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 02:37:04 +0000
commit6456dd12983daf4ac2fb26a6faeb89fa9fd32d4c (patch)
tree449c090112842fb623ce6e40b9bc64b8865abc0a /src
parentd56539c9abbc2165b29f88c5f62f712497de069b (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/userprocess.cpp4
1 files changed, 2 insertions, 2 deletions
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() != "")