diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 02:37:04 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-14 02:37:04 +0000 |
commit | 6456dd12983daf4ac2fb26a6faeb89fa9fd32d4c (patch) | |
tree | 449c090112842fb623ce6e40b9bc64b8865abc0a /src | |
parent | d56539c9abbc2165b29f88c5f62f712497de069b (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.cpp | 4 |
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() != "") |