diff options
| author | 2005-12-14 02:37:04 +0000 | |
|---|---|---|
| committer | 2005-12-14 02:37:04 +0000 | |
| commit | 6456dd12983daf4ac2fb26a6faeb89fa9fd32d4c (patch) | |
| tree | 449c090112842fb623ce6e40b9bc64b8865abc0a /src/userprocess.cpp | |
| parent | tidystring() anal optimisation (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/userprocess.cpp')
| -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() != "") |
