]> jfr.im git - irc/quakenet/snircd.git/commitdiff
fix /check to display user count when checking your local server
authorpaul <redacted>
Thu, 27 Jul 2006 21:13:00 +0000 (22:13 +0100)
committerpaul <redacted>
Thu, 27 Jul 2006 21:13:00 +0000 (22:13 +0100)
ircd/m_check.c

index 4b5412956b2e05e40b6e3e8db9ad9eb27ba35a9a..6c5c8dd3fdfbec00e14208e1341f8d167952b631 100644 (file)
@@ -447,7 +447,7 @@ void checkServer(struct Client *sptr, struct Client *acptr) {
   ircd_snprintf(0, outbuf, sizeof(outbuf), "        Numeric:: %s --> %d", NumServ(acptr), base64toint(acptr->cli_yxx));
   send_reply(sptr, RPL_DATASTR, outbuf);
   
-  ircd_snprintf(0, outbuf, sizeof(outbuf), "          Users:: %d / %d", cli_serv(acptr)->clients, 
+  ircd_snprintf(0, outbuf, sizeof(outbuf), "          Users:: %d / %d", (acptr == &me) ? UserStats.local_clients : cli_serv(acptr)->clients, 
     base64toint(cli_serv(acptr)->nn_capacity));
   send_reply(sptr, RPL_DATASTR, outbuf);