diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-18 12:25:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-04-18 12:25:03 +0000 |
commit | a647fe86cf4a08a719c472fd977c8d231fee9033 (patch) | |
tree | 9c20491a8b53f20e381cc70f52c5d4d160d4a6cb /src/inspircd.cpp | |
parent | 314c59cb3bb0ebb86eaa18a82c59fd7f9630ca97 (diff) |
Fixed /LUSERS server count again
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1118 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 18 |
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; } |