summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-18 12:25:03 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-18 12:25:03 +0000
commita647fe86cf4a08a719c472fd977c8d231fee9033 (patch)
tree9c20491a8b53f20e381cc70f52c5d4d160d4a6cb
parent314c59cb3bb0ebb86eaa18a82c59fd7f9630ca97 (diff)
Fixed /LUSERS server count again
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1118 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspircd.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 21113b4f4..ad5e46905 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2458,23 +2458,19 @@ long chancount(void)
long count_servs(void)
{
int c = 0;
- for (int j = 0; j < 255; j++)
- {
- for (int i = 0; i < 32; i++)
+ for (int i = 0; i < 32; i++)
+ {
+ if (me[i] != NULL)
{
- if (me[i] != NULL)
+ for (vector<ircd_connector>::iterator j = me[i]->connectors.begin(); j != me[i]->connectors.end(); j++)
{
- for (vector<ircd_connector>::iterator j = me[i]->connectors.begin(); j != me[i]->connectors.end(); j++)
+ if (strcasecmp(j->GetServerName().c_str(),ServerName))
{
- if (strcasecmp(j->GetServerName().c_str(),ServerName))
- {
- c++;
- }
+ c++;
}
}
}
-
- }
+ }
return c;
}