From 39c14ca7972db592a1299fc30118517080ae3f33 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Tue, 12 Oct 2004 18:29:35 +0000 Subject: [PATCH] Add some left-out fields for RPL_STATSCLINE. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1241 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ircd/s_err.c | 2 +- ircd/s_stats.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ircd/s_err.c b/ircd/s_err.c index ace8093..69aa66f 100644 --- a/ircd/s_err.c +++ b/ircd/s_err.c @@ -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 */ diff --git a/ircd/s_stats.c b/ircd/s_stats.c index 0f9f5f4..84b804b 100644 --- a/ircd/s_stats.c +++ b/ircd/s_stats.c @@ -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) -- 2.20.1