Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2004-10-12 18:29:45 UTC

Modified files:
     ircd/s_err.c ircd/s_stats.c

Log message:

Add some left-out fields for RPL_STATSCLINE.

---------------------- diff included ----------------------
Index: ircu2.10/ircd/s_err.c
diff -u ircu2.10/ircd/s_err.c:1.57 ircu2.10/ircd/s_err.c:1.58
--- ircu2.10/ircd/s_err.c:1.57  Tue Oct 12 11:24:13 2004
+++ ircu2.10/ircd/s_err.c       Tue Oct 12 11:29:35 2004
@@ -18,7 +18,7 @@
  */
 /** @file
  * @brief Error handling support.
- * @version $Id: s_err.c,v 1.57 2004/10/12 18:24:13 entrope Exp $
+ * @version $Id: s_err.c,v 1.58 2004/10/12 18:29:35 entrope Exp $
  */
 #include "config.h"
 
@@ -461,7 +461,7 @@
 /* 212 */
   { RPL_STATSCOMMANDS, "%s %u %u", "212" },
 /* 213 */
-  { RPL_STATSCLINE, "C %s %d %s", "213" },
+  { RPL_STATSCLINE, "C %s %s %d %d %s %s", "213" },
 /* 214 */
   { 0 },
 /* 215 */
Index: ircu2.10/ircd/s_stats.c
diff -u ircu2.10/ircd/s_stats.c:1.28 ircu2.10/ircd/s_stats.c:1.29
--- ircu2.10/ircd/s_stats.c:1.28        Tue Oct 12 11:24:13 2004
+++ ircu2.10/ircd/s_stats.c     Tue Oct 12 11:29:35 2004
@@ -60,7 +60,7 @@
 /** @file
  * @brief Report configuration lines and other statistics from this
  * server.
- * @version $Id: s_stats.c,v 1.28 2004/10/12 18:24:13 entrope Exp $
+ * @version $Id: s_stats.c,v 1.29 2004/10/12 18:29:35 entrope Exp $
  *
  * Note: The info is reported in the order the server uses
  *       it--not reversed as in ircd.conf!
@@ -87,7 +87,7 @@
   struct ConfItem *tmp;
   unsigned short int port;
   int maximum;
-  char *host, *pass, *name;
+  char *host, *pass, *name, *hub_limit;
 
   for (tmp = GlobalConfList; tmp; tmp = tmp->next)
   {
@@ -96,12 +96,13 @@
       host = BadPtr(tmp->host) ? null : tmp->host;
       pass = BadPtr(tmp->passwd) ? null : tmp->passwd;
       name = BadPtr(tmp->name) ? null : tmp->name;
+      hub_limit = BadPtr(tmp->hub_limit) ? null : tmp->hub_limit;
       maximum = tmp->maximum;
       port = tmp->address.port;
       if (tmp->status & CONF_UWORLD)
        send_reply(sptr, RPL_STATSULINE, name);
       else if (tmp->status & CONF_SERVER)
-       send_reply(sptr, RPL_STATSCLINE, name, port, get_conf_class(tmp));
+       send_reply(sptr, RPL_STATSCLINE, name, host, port, maximum, hub_limit, 
get_conf_class(tmp));
       else if (tmp->status & CONF_CLIENT)
         send_reply(sptr, RPL_STATSILINE, host, maximum, name, port, 
get_conf_class(tmp));
       else if (tmp->status & CONF_OPERATOR)
----------------------- End of diff -----------------------

Reply via email to