CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_11_05
Commit time: 2003-08-31 21:02:39 UTC

Modified files:
  Tag: u2_10_11_05
     ChangeLog ircd/ircd.c ircd/s_stats.c

Log message:

Author: hikari <[EMAIL PROTECTED]>
Log message:

  Fixed stats_servers_verbose() so that the client count for the local 
server is actually displayed.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.128.2.31 ircu2.10/ChangeLog:1.290.2.128.2.32
--- ircu2.10/ChangeLog:1.290.2.128.2.31 Sat Aug 30 06:44:03 2003
+++ ircu2.10/ChangeLog  Sun Aug 31 14:02:28 2003
@@ -1,3 +1,7 @@
+2003-08-31 hikari <[EMAIL PROTECTED]>
+       * ircd/s_stats.c: Fixed stats_servers_verbose() so that the client
+       count for the local server is actually displayed.
+
 2003-08-28 hikari <[EMAIL PROTECTED]>
        * ircd/Makefile.in: Adding CFLAGS in a couple of places so building
        with flags that effect linking works properly (-m64 for example).
Index: ircu2.10/ircd/ircd.c
diff -u ircu2.10/ircd/ircd.c:1.51.2.10.4.3 ircu2.10/ircd/ircd.c:1.51.2.10.4.4
--- ircu2.10/ircd/ircd.c:1.51.2.10.4.3  Fri Jun 27 03:51:13 2003
+++ ircu2.10/ircd/ircd.c        Sun Aug 31 14:02:28 2003
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: ircd.c,v 1.51.2.10.4.3 2003/06/27 10:51:13 shad0w Exp $
+ * $Id: ircd.c,v 1.51.2.10.4.4 2003/08/31 21:02:28 shad0w Exp $
  */
 #include "config.h"
 
@@ -380,6 +380,7 @@
      * lines
      */
     if (!IsRegistered(cptr)) {
+      assert(!IsServer(cptr));
       if ((CurrentTime-cli_firsttime(cptr) >= max_ping)) {
        /* Display message if they have sent a NICK and a USER but no
         * nospoof PONG.
Index: ircu2.10/ircd/s_stats.c
diff -u ircu2.10/ircd/s_stats.c:1.16.2.8 ircu2.10/ircd/s_stats.c:1.16.2.8.2.1
--- ircu2.10/ircd/s_stats.c:1.16.2.8    Tue Jan  7 03:15:44 2003
+++ ircu2.10/ircd/s_stats.c     Sun Aug 31 14:02:28 2003
@@ -19,7 +19,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: s_stats.c,v 1.16.2.8 2003/01/07 11:15:44 isomer Exp $
+ * $Id: s_stats.c,v 1.16.2.8.2.1 2003/08/31 21:02:28 shad0w Exp $
  */
 #include "config.h"
 
@@ -51,6 +51,7 @@
 #include "send.h"
 #include "struct.h"
 #include "userload.h"
+#include "querycmds.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -346,7 +347,7 @@
               cli_serv(acptr)->asll_rtt,
               cli_serv(acptr)->asll_to,
               cli_serv(acptr)->asll_from,
-              cli_serv(acptr)->clients,
+              (acptr == &me) ? UserStats.local_clients : cli_serv(acptr)->clients,
               cli_serv(acptr)->nn_mask,
               cli_serv(acptr)->prot,
               cli_serv(acptr)->timestamp,
----------------------- End of diff -----------------------

Reply via email to