diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-13 23:17:22 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-13 23:17:22 +0000 |
commit | c9447a9088997d2309fd2a46fb720115337c3706 (patch) | |
tree | 9ecc7c6f22bd3095e22c433cc19a915068e06711 /src/helperfuncs.cpp | |
parent | dec44e09b85c9c5bd1e87b1f9607429f046a1e64 (diff) |
#define IS_LOCAL(x) (x->fd > -1)
#define IS_REMOTE(x) (x->fd < 0)
#define IS_MODULE_CREATED(x) (x->fd == FD_MAGIC_NUMBER)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2386 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r-- | src/helperfuncs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index c4c6f397b..42dec9b7c 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -1117,7 +1117,7 @@ int usercount_unknown(void) for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) { - if ((i->second->fd) && (i->second->registered != 7)) + if ((i->second->fd > -1) && (i->second->registered != 7)) c++; } return c; @@ -1133,7 +1133,7 @@ long local_count() int c = 0; for (user_hash::const_iterator i = clientlist.begin(); i != clientlist.end(); i++) { - if ((i->second->fd) && (isnick(i->second->nick)) && (i->second->server->fd > -1)) c++; + if ((isnick(i->second->nick)) && (i->second->fd > -1)) c++; } return c; } |