summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-13 23:11:37 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-13 23:11:37 +0000
commitdec44e09b85c9c5bd1e87b1f9607429f046a1e64 (patch)
tree4250cd5b4cc945915fc712ddb4f8b73dcab99564 /src/helperfuncs.cpp
parent137f1397f2298fab8b289cb040557a77f17b50fe (diff)
optimized a ton of strcmps down to an integer comparison!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2385 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp
index 897f9f890..c4c6f397b 100644
--- a/src/helperfuncs.cpp
+++ b/src/helperfuncs.cpp
@@ -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)) && (!strcasecmp(i->second->server,ServerName))) c++;
+ if ((i->second->fd) && (isnick(i->second->nick)) && (i->second->server->fd > -1)) c++;
}
return c;
}