Add some left-out fields for RPL_STATSCLINE.
authorMichael Poole <mdpoole@troilus.org>
Tue, 12 Oct 2004 18:29:35 +0000 (18:29 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 12 Oct 2004 18:29:35 +0000 (18:29 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1241 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ircd/s_err.c
ircd/s_stats.c

index ace809342266d97a5400218ba6642b342ed90e45..69aa66f7e43a87d8bb7afadf15a8ceeb1594d8ae 100644 (file)
@@ -461,7 +461,7 @@ static Numeric replyTable[] = {
 /* 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 0f9f5f4fd80532516b4531b00e5029e5be1c0148..84b804bfef37d85d4732799a30b13a885c8ef008 100644 (file)
@@ -87,7 +87,7 @@ stats_configured_links(struct Client *sptr, const struct StatDesc* sd,
   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 @@ stats_configured_links(struct Client *sptr, const struct StatDesc* sd,
       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)