diff options
-rw-r--r-- | docs/inspircd.conf.example | 1 | ||||
-rw-r--r-- | src/inspircd.cpp | 22 |
2 files changed, 17 insertions, 6 deletions
diff --git a/docs/inspircd.conf.example b/docs/inspircd.conf.example index 143787382..903cf1182 100644 --- a/docs/inspircd.conf.example +++ b/docs/inspircd.conf.example @@ -423,7 +423,6 @@ <alias text="NICKSERV" replace="PRIVMSG NickServ :" requires="NickServ" uline="yes"> <alias text="CHANSERV" replace="PRIVMSG ChanServ :" requires="ChanServ" uline="yes"> -<alias text="NS ID" replace="PRIVMSG NickServ :identify" requires="NickServ" uline="yes"> <alias text="NS" replace="PRIVMSG NickServ :" requires="NickServ" uline="yes"> <alias text="CS" replace="PRIVMSG ChanServ :" requires="ChanServ" uline="yes"> diff --git a/src/inspircd.cpp b/src/inspircd.cpp index a16898d53..21113b4f4 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -2458,11 +2458,23 @@ long chancount(void) long count_servs(void) { int c = 0; - //for (int j = 0; j < 255; j++) - //{ - // if (servers[j] != NULL) - // c++; - //} + for (int j = 0; j < 255; j++) + { + for (int i = 0; i < 32; i++) + { + if (me[i] != NULL) + { + for (vector<ircd_connector>::iterator j = me[i]->connectors.begin(); j != me[i]->connectors.end(); j++) + { + if (strcasecmp(j->GetServerName().c_str(),ServerName)) + { + c++; + } + } + } + } + + } return c; } |