2 * IRC - Internet Relay Chat, ircd/m_stats.c
3 * Copyright (C) 1990 Jarkko Oikarinen and
4 * University of Oulu, Computing Center
6 * See file AUTHORS in IRC package for additional names of
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 1, or (at your option)
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 * m_functions execute protocol messages on this server:
29 * cptr is always NON-NULL, pointing to a *LOCAL* client
30 * structure (with an open socket connected!). This
31 * identifies the physical socket where the message
32 * originated (or which caused the m_function to be
33 * executed--some m_functions may call others...).
35 * sptr is the source of the message, defined by the
36 * prefix part of the message if present. If not
37 * or prefix not found, then sptr==cptr.
39 * (!IsServer(cptr)) => (cptr == sptr), because
40 * prefixes are taken *only* from servers...
43 * (sptr == cptr) => the message didn't
46 * (sptr != cptr && IsServer(sptr) means
47 * the prefix specified servername. (?)
49 * (sptr != cptr && !IsServer(sptr) means
50 * that message originated from a remote
55 * (!IsServer(sptr)) means that, sptr can safely
56 * taken as defining the target structure of the
57 * message in this server.
59 * *Always* true (if 'parse' and others are working correct):
61 * 1) sptr->from == cptr (note: cptr->from == cptr)
63 * 2) MyConnect(sptr) <=> sptr == cptr (e.g. sptr
64 * *cannot* be a local connection, unless it's
65 * actually cptr!). [MyConnect(x) should probably
66 * be defined as (x == x->from) --msa ]
68 * parc number of variable parameter strings (if zero,
69 * parv is allowed to be NULL)
71 * parv a NULL terminated list of parameter pointers,
73 * parv[0], sender (prefix string), if not present
74 * this points to an empty string.
75 * parv[1]...parv[parc-1]
76 * pointers to additional parameters
77 * parv[parc] == NULL, *always*
79 * note: it is guaranteed that parv[0]..parv[parc-1] are all
95 #include "ircd_alloc.h"
96 #include "ircd_chattr.h"
97 #include "ircd_events.h"
98 #include "ircd_features.h"
99 #include "ircd_policy.h"
100 #include "ircd_reply.h"
101 #include "ircd_string.h"
103 #include "listener.h"
108 #include "numnicks.h"
109 #include "opercmds.h"
118 #include "userload.h"
125 int report_klines(struct Client* sptr, char* mask, int limit_query)
131 const struct DenyConf* conf;
133 if (EmptyString(mask)) {
135 return need_more_params(sptr, "STATS K");
137 report_deny_list(sptr);
142 wilds = string_has_wildcards(mask);
146 if ((host = strchr(mask, '@'))) {
154 for (conf = conf_get_deny_list(); conf; conf = conf->next) {
155 if ((!wilds && ((user || conf->hostmask) &&
156 !match(conf->hostmask, host) &&
157 (!user || !match(conf->usermask, user)))) ||
158 (wilds && !mmatch(host, conf->hostmask) &&
159 (!user || !mmatch(user, conf->usermask))))
161 send_reply(sptr, RPL_STATSKLINE,
162 (conf->flags & DENY_FLAGS_IP) ? 'k' : 'K',
163 conf->hostmask, conf->message, conf->usermask);
168 /* send_reply(sptr, RPL_ENDOFSTATS, stat); */
172 static int report_servers_verbose(struct Client *sptr, char stat)
174 struct Client *acptr;
177 /* lowercase 'v' is for human-readable,
178 * uppercase 'V' is for machine-readable */
180 send_reply(sptr, SND_EXPLICIT | RPL_STATSVERBOSE,
181 "%-20s Burst Hops Numeric Lag Clients/Max Proto "
182 "%-10s :Info", "Servername", "LinkTS");
183 for (i = -1; i <= HighestFd; i++) {
185 /* Hack 'me' in the list as well */
187 else if (!(acptr = LocalClientArray[i]) || !IsServer(acptr))
189 send_reply(sptr, SND_EXPLICIT | RPL_STATSVERBOSE, stat == 'v' ?
190 "%-20s %c%c %4i %s %-4i %5i %5i %5i P%-2i %Tu :%s" :
191 "%s %c%c %i %s %i %i %i %i P%i %Tu :%s",
193 IsBurst(acptr) ? 'B' : '-',
194 IsBurstAck(acptr) ? 'A' : '-',
197 base64toint(cli_yxx(acptr)),
198 cli_serv(acptr)->lag,
199 cli_serv(acptr)->clients,
200 cli_serv(acptr)->nn_mask,
201 cli_serv(acptr)->prot,
202 cli_serv(acptr)->timestamp,
210 * m_stats - generic message handler
212 * parv[0] = sender prefix
213 * parv[1] = statistics selector (defaults to Message frequency)
214 * parv[2] = target server (current server defaulted, if omitted)
215 * And 'stats l' and 'stats' L:
216 * parv[3] = server mask ("*" defaulted, if omitted)
218 * parv[3] = port mask (returns p-lines when its port is matched by this)
219 * Or for stats k,K,i and I:
220 * parv[3] = [user@]host.name (returns which K/I-lines match this)
221 * or [user@]host.mask (returns which K/I-lines are mmatched by this)
222 * (defaults to old reply if ommitted, when local or Oper)
223 * A remote mask (something containing wildcards) is only
224 * allowed for IRC Operators.
226 * parv[3] = time param
227 * parv[4] = time param
228 * (see report_memleak_stats() in runmalloc.c for details)
230 * This function is getting really ugly. -Ghostwolf
232 int m_stats(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
234 char stat = parc > 1 ? parv[1][0] : '\0';
235 const char **infotext = statsinfo;
237 if (hunt_stats(cptr, sptr, parc, parv, stat, HEAD_IN_SAND_REMOTE)
245 #ifdef HEAD_IN_SAND_STATS_L
246 return m_not_oper(sptr,cptr,parc,parv);
249 struct Client *acptr;
255 if (parc > 3 && !EmptyString(parv[3])) {
257 wilds = string_has_wildcards(name);
262 * Send info about connections which match, or all if the
263 * mask matches me.name. Only restrictions are on those who
264 * are invisible not being visible to 'foreigners' who use
265 * a wild card based search to list it.
267 send_reply(sptr, SND_EXPLICIT | RPL_STATSLINKINFO, "Connection SendQ "
268 "SendM SendKBytes RcveM RcveKBytes :Open since");
269 for (i = 0; i <= HighestFd; i++)
271 if (!(acptr = LocalClientArray[i]))
273 /* Don't return clients when this is a request for `all' */
274 if (doall && IsUser(acptr))
276 /* Don't show invisible people to non opers unless they know the nick */
277 if (IsInvisible(acptr) && (doall || wilds) && !IsAnOper(acptr) && (acptr != sptr))
279 /* Only show the ones that match the given mask - if any */
280 if (!doall && wilds && match(name, cli_name(acptr)))
282 /* Skip all that do not match the specific query */
283 if (!(doall || wilds) && 0 != ircd_strcmp(name, cli_name(acptr)))
285 send_reply(sptr, SND_EXPLICIT | RPL_STATSLINKINFO,
286 "%s %u %u %u %u %u :%Tu", (*(cli_name(acptr))) ? cli_name(acptr) : "<unregistered>",
287 (int)MsgQLength(&(cli_sendQ(acptr))), (int)cli_sendM(acptr),
288 (int)cli_sendK(acptr), (int)cli_receiveM(acptr),
289 (int)cli_receiveK(acptr), CurrentTime - cli_firsttime(acptr));
297 #ifdef HEAD_IN_SAND_STATS_C
298 return m_not_oper(sptr,cptr,parc,parv);
300 report_configured_links(sptr, CONF_SERVER);
305 case 'e': /* report engine name */
306 #ifdef HEAD_IN_SAND_STATS_E
307 return m_not_oper(sptr,cptr,parc,parv);
309 send_reply(sptr, RPL_STATSENGINE, engine_name());
314 case 'g': /* send glines */
315 #ifdef HEAD_IN_SAND_STATS_G
316 return m_not_oper(sptr,cptr,parc,parv);
324 #ifdef HEAD_IN_SAND_STATS_H
325 return m_not_oper(sptr,cptr,parc,parv);
327 report_configured_links(sptr, CONF_HUB | CONF_LEAF);
332 case 'k': /* display CONF_IPKILL as well as CONF_KILL -Kev */
333 #ifdef HEAD_IN_SAND_STATS_K
334 /* Simple version - if you want to fix it - send in a patch */
335 return m_not_oper(sptr,cptr,parc,parv);
337 if (0 == report_klines(sptr, (parc == 4) ? parv[3] : 0, 0))
343 #ifdef HEAD_IN_SAND_STATS_F
344 return m_not_oper(sptr,cptr,parc,parv);
346 feature_report(sptr);
352 #ifdef HEAD_IN_SAND_STATS_I
353 /* Simple version - if you want to fix it - send in a patch */
354 return m_not_oper(sptr,cptr,parc,parv);
357 struct ConfItem *aconf;
363 report_configured_links(sptr, CONF_CLIENT);
366 if (EmptyString(parv[3]))
367 return need_more_params(sptr, "STATS I");
370 wilds = string_has_wildcards(host);
372 for (aconf = GlobalConfList; aconf; aconf = aconf->next) {
373 if (CONF_CLIENT == aconf->status) {
374 if ((!wilds && (!match(aconf->host, host) ||
375 !match(aconf->name, host))) ||
376 (wilds && (!mmatch(host, aconf->host) ||
377 !mmatch(host, aconf->name))))
379 if (aconf->passwd && IsDigit(*aconf->passwd) &&
380 (!aconf->passwd[1] ||
381 (IsDigit(aconf->passwd[1]) && !aconf->passwd[2])))
382 send_reply(sptr, RPL_STATSILINE, 'I', aconf->host, aconf->passwd,
383 aconf->name, aconf->port, get_conf_class(aconf));
385 send_reply(sptr, RPL_STATSILINE, 'I', aconf->host, "*",
386 aconf->name, aconf->port, get_conf_class(aconf));
398 #ifdef HEAD_IN_SAND_STATS_M
399 return m_not_oper(sptr,cptr,parc,parv);
402 send_reply(sptr, RPL_STATMEMTOT, fda_get_byte_count(),
403 fda_get_block_count());
409 #ifdef HEAD_IN_SAND_STATS_m
410 return m_not_oper(sptr,cptr,parc,parv);
413 struct Message *mptr;
415 for (mptr = msgtab; mptr->cmd; mptr++)
417 send_reply(sptr, RPL_STATSCOMMANDS, mptr->cmd, mptr->count,
425 #ifdef HEAD_IN_SAND_STATS_O
426 return m_not_oper(sptr,cptr,parc,parv);
428 report_configured_links(sptr, CONF_OPS);
435 * show listener ports
436 * show hidden ports to opers, if there are more than 3 parameters,
437 * interpret the fourth parameter as the port number.
439 #ifdef HEAD_IN_SAND_STATS_P
440 return m_not_oper(sptr,cptr,parc,parv);
442 show_ports(sptr, 0, (parc > 3) ? atoi(parv[3]) : 0, 100);
448 #ifdef HEAD_IN_SAND_STATS_R
449 return m_not_oper(sptr,cptr,parc,parv);
452 send_usage(sptr, parv[0]);
458 #ifdef HEAD_IN_SAND_STATS_D
459 return m_not_oper(sptr,cptr,parc,parv);
461 report_crule_list(sptr, CRULE_ALL);
466 #ifdef HEAD_IN_SAND_STATS_d
467 return m_not_oper(sptr,cptr,parc,parv);
469 report_crule_list(sptr, CRULE_MASK);
474 #ifdef HEAD_IN_SAND_STATS_t
475 return m_not_oper(sptr,cptr,parc,parv);
477 tstats(sptr, parv[0]);
482 #ifdef HEAD_IN_SAND_STATS_T
483 return m_not_oper(sptr,cptr,parc,parv);
490 #ifdef HEAD_IN_SAND_STATS_U
491 return m_not_oper(sptr,cptr,parc,parv);
493 report_configured_links(sptr, CONF_UWORLD);
498 #ifdef HEAD_IN_SAND_STATS_u
499 return m_not_oper(sptr,cptr,parc,parv);
504 nowr = CurrentTime - cli_since(&me);
505 send_reply(sptr, RPL_STATSUPTIME, nowr / 86400, (nowr / 3600) % 24,
506 (nowr / 60) % 60, nowr % 60);
507 send_reply(sptr, RPL_STATSCONN, max_connection_count, max_client_count);
514 #ifdef HEAD_IN_SAND_STATS_W
515 return m_not_oper(sptr,cptr,parc,parv);
523 #ifdef HEAD_IN_SAND_STATS_X
524 return m_not_oper(sptr,cptr,parc,parv);
527 class_send_meminfo(sptr);
528 send_listinfo(sptr, parv[0]);
535 #ifdef HEAD_IN_SAND_STATS_Y
536 return m_not_oper(sptr,cptr,parc,parv);
538 report_classes(sptr);
544 #ifdef HEAD_IN_SAND_STATS_Z
545 return m_not_oper(sptr,cptr,parc,parv);
547 count_memory(sptr, parv[0]);
554 sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :%s", sptr, *infotext++);
557 send_reply(sptr, RPL_ENDOFSTATS, stat);
562 * ms_stats - server message handler
564 * parv[0] = sender prefix
565 * parv[1] = statistics selector (defaults to Message frequency)
566 * parv[2] = target server (current server defaulted, if omitted)
567 * And 'stats l' and 'stats' L:
568 * parv[3] = server mask ("*" defaulted, if omitted)
570 * parv[3] = port mask (returns p-lines when its port is matched by this)
571 * Or for stats k,K,i and I:
572 * parv[3] = [user@]host.name (returns which K/I-lines match this)
573 * or [user@]host.mask (returns which K/I-lines are mmatched by this)
574 * (defaults to old reply if ommitted, when local or Oper)
575 * A remote mask (something containing wildcards) is only
576 * allowed for IRC Operators.
578 * parv[3] = time param
579 * parv[4] = time param
580 * (see report_memleak_stats() in runmalloc.c for details)
582 * This function is getting really ugly. -Ghostwolf
584 int ms_stats(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
586 struct Message *mptr;
587 struct Client *acptr;
588 struct ConfItem *aconf;
589 char stat = parc > 1 ? parv[1][0] : '\0';
592 if (hunt_stats(cptr, sptr, parc, parv, stat, 0) != HUNTED_ISME)
604 if (parc > 3 && !EmptyString(parv[3])) {
606 wilds = string_has_wildcards(name);
611 * Send info about connections which match, or all if the
612 * mask matches me.name. Only restrictions are on those who
613 * are invisible not being visible to 'foreigners' who use
614 * a wild card based search to list it.
616 send_reply(sptr, SND_EXPLICIT | RPL_STATSLINKINFO, "Connection SendQ "
617 "SendM SendKBytes RcveM RcveKBytes :Open since");
618 for (i = 0; i <= HighestFd; i++)
620 if (!(acptr = LocalClientArray[i]))
622 /* Don't return clients when this is a request for `all' */
623 if (doall && IsUser(acptr))
625 /* Don't show invisible people to unauthorized people when using
626 * wildcards -- Is this still needed now /stats is oper only ?
627 * Not here, because ms_stats is specifically a remote command,
628 * thus the check was removed. -Ghostwolf */
629 /* Only show the ones that match the given mask - if any */
630 if (!doall && wilds && match(name, cli_name(acptr)))
632 /* Skip all that do not match the specific query */
633 if (!(doall || wilds) && 0 != ircd_strcmp(name, cli_name(acptr)))
635 send_reply(sptr, SND_EXPLICIT | RPL_STATSLINKINFO,
636 "%s %u %u %u %u %u :%Tu", cli_name(acptr),
637 (int)MsgQLength(&(cli_sendQ(acptr))), (int)cli_sendM(acptr),
638 (int)cli_sendK(acptr), (int)cli_receiveM(acptr),
639 (int)cli_receiveK(acptr), CurrentTime - cli_firsttime(acptr));
645 report_configured_links(sptr, CONF_SERVER);
648 case 'e': /* report engine name */
649 send_reply(sptr, RPL_STATSENGINE, engine_name());
652 case 'g': /* send glines */
657 report_configured_links(sptr, CONF_HUB | CONF_LEAF);
660 case 'k': /* display CONF_IPKILL as well as CONF_KILL -Kev */
661 if (0 == report_klines(sptr, (parc > 3) ? parv[3] : 0, !IsOper(sptr)))
666 feature_report(sptr);
675 if (parc < 4 && IsOper(sptr)) {
676 report_configured_links(sptr, CONF_CLIENT);
679 if (parc < 4 || EmptyString(parv[3]))
680 return need_more_params(sptr, "STATS I");
683 wilds = string_has_wildcards(parv[3]);
689 for (aconf = GlobalConfList; aconf; aconf = aconf->next) {
690 if (CONF_CLIENT == aconf->status) {
691 if ((!wilds && (!match(aconf->host, host) ||
692 !match(aconf->name, host))) ||
693 (wilds && (!mmatch(host, aconf->host) ||
694 !mmatch(host, aconf->name))))
696 if (aconf->passwd && IsDigit(*aconf->passwd) &&
697 (!aconf->passwd[1] ||
698 (IsDigit(aconf->passwd[1]) && !aconf->passwd[2])))
699 send_reply(sptr, RPL_STATSILINE, 'I', aconf->host,
700 aconf->passwd, aconf->name, aconf->port,
701 get_conf_class(aconf));
703 send_reply(sptr, RPL_STATSILINE, 'I', aconf->host, "*",
704 aconf->name, aconf->port, get_conf_class(aconf));
715 send_reply(sptr, RPL_STATMEMTOT, fda_get_byte_count(),
716 fda_get_block_count());
720 for (mptr = msgtab; mptr->cmd; mptr++)
722 send_reply(sptr, RPL_STATSCOMMANDS, mptr->cmd, mptr->count,
727 report_configured_links(sptr, CONF_OPS);
732 * show listener ports
733 * show hidden ports to opers, if there are more than 3 parameters,
734 * interpret the fourth parameter as the port number, limit non-local
735 * or non-oper results to 8 ports.
737 show_ports(sptr, IsOper(sptr), (parc > 3) ? atoi(parv[3]) : 0, IsOper(sptr) ? 100 : 8);
742 send_usage(sptr, parv[0]);
746 report_crule_list(sptr, CRULE_ALL);
749 report_crule_list(sptr, CRULE_MASK);
752 tstats(sptr, parv[0]);
758 report_configured_links(sptr, CONF_UWORLD);
764 nowr = CurrentTime - cli_since(&me);
765 send_reply(sptr, RPL_STATSUPTIME, nowr / 86400, (nowr / 3600) % 24,
766 (nowr / 60) % 60, nowr % 60);
767 send_reply(sptr, RPL_STATSCONN, max_connection_count, max_client_count);
772 report_servers_verbose(sptr, stat);
781 class_send_meminfo(sptr);
782 send_listinfo(sptr, parv[0]);
787 report_classes(sptr);
791 count_memory(sptr, parv[0]);
797 send_reply(sptr, RPL_ENDOFSTATS, stat);
802 * mo_stats - oper message handler
804 * parv[0] = sender prefix
805 * parv[1] = statistics selector (defaults to Message frequency)
806 * parv[2] = target server (current server defaulted, if omitted)
807 * And 'stats l' and 'stats' L:
808 * parv[3] = server mask ("*" defaulted, if omitted)
810 * parv[3] = port mask (returns p-lines when its port is matched by this)
811 * Or for stats k,K,i and I:
812 * parv[3] = [user@]host.name (returns which K/I-lines match this)
813 * or [user@]host.mask (returns which K/I-lines are mmatched by this)
814 * (defaults to old reply if ommitted, when local or Oper)
815 * A remote mask (something containing wildcards) is only
816 * allowed for IRC Operators.
818 * parv[3] = time param
819 * parv[4] = time param
820 * (see report_memleak_stats() in runmalloc.c for details)
822 * This function is getting really ugly. -Ghostwolf
824 int mo_stats(struct Client* cptr, struct Client* sptr, int parc, char* parv[])
826 struct Message* mptr;
827 struct Client* acptr;
828 struct ConfItem* aconf;
829 char stat = parc > 1 ? parv[1][0] : '\0';
830 const char** infotext = statsinfo;
833 if (hunt_stats(cptr, sptr, parc, parv, stat, HEAD_IN_SAND_REMOTE)
842 int doall = 0, wilds = 0;
844 if (parc > 3 && !EmptyString(parv[3])) {
846 wilds = string_has_wildcards(name);
851 * Send info about connections which match, or all if the
852 * mask matches me.name. Only restrictions are on those who
853 * are invisible not being visible to 'foreigners' who use
854 * a wild card based search to list it.
856 send_reply(sptr, SND_EXPLICIT | RPL_STATSLINKINFO, "Connection SendQ "
857 "SendM SendKBytes RcveM RcveKBytes :Open since");
858 for (i = 0; i <= HighestFd; i++)
860 if (!(acptr = LocalClientArray[i]))
862 /* Don't return clients when this is a request for `all' */
863 if (doall && IsUser(acptr))
865 /* Only show the ones that match the given mask - if any */
866 if (!doall && wilds && match(name, cli_name(acptr)))
868 /* Skip all that do not match the specific query */
869 if (!(doall || wilds) && 0 != ircd_strcmp(name, cli_name(acptr)))
871 send_reply(sptr, SND_EXPLICIT | RPL_STATSLINKINFO,
872 "%s %u %u %u %u %u :%Tu", cli_name(acptr),
873 (int)MsgQLength(&(cli_sendQ(acptr))), (int)cli_sendM(acptr),
874 (int)cli_sendK(acptr), (int)cli_receiveM(acptr),
875 (int)cli_receiveK(acptr), CurrentTime - cli_firsttime(acptr));
881 report_configured_links(sptr, CONF_SERVER);
884 case 'e': /* report engine name */
885 send_reply(sptr, RPL_STATSENGINE, engine_name());
888 case 'g': /* send glines */
893 report_configured_links(sptr, CONF_HUB | CONF_LEAF);
896 case 'k': /* display CONF_IPKILL as well as CONF_KILL -Kev */
897 if (0 == report_klines(sptr, (parc > 3) ? parv[3] : 0, 0))
902 feature_report(sptr);
912 report_configured_links(sptr, CONF_CLIENT);
915 if (EmptyString(parv[3]))
916 return need_more_params(sptr, "STATS I");
919 wilds = string_has_wildcards(host);
921 for (aconf = GlobalConfList; aconf; aconf = aconf->next) {
922 if (CONF_CLIENT == aconf->status) {
923 if ((!wilds && (!match(aconf->host, host) ||
924 !match(aconf->name, host))) ||
925 (wilds && (!mmatch(host, aconf->host) ||
926 !mmatch(host, aconf->name))))
928 if (aconf->passwd && IsDigit(*aconf->passwd) &&
929 (!aconf->passwd[1] ||
930 (IsDigit(aconf->passwd[1]) && !aconf->passwd[2])))
931 send_reply(sptr, RPL_STATSILINE, 'I', aconf->host,
932 aconf->passwd, aconf->name, aconf->port,
933 get_conf_class(aconf));
935 send_reply(sptr, RPL_STATSILINE, 'I', aconf->host, "*",
936 aconf->name, aconf->port, get_conf_class(aconf));
947 send_reply(sptr, RPL_STATMEMTOT, fda_get_byte_count(),
948 fda_get_block_count());
952 for (mptr = msgtab; mptr->cmd; mptr++)
954 send_reply(sptr, RPL_STATSCOMMANDS, mptr->cmd, mptr->count,
959 report_configured_links(sptr, CONF_OPS);
964 * show listener ports
965 * show hidden ports to opers, if there are more than 3 parameters,
966 * interpret the fourth parameter as the port number, limit non-local
967 * or non-oper results to 8 ports.
969 show_ports(sptr, 1, (parc > 3) ? atoi(parv[3]) : 0, 100);
974 send_usage(sptr, parv[0]);
978 report_crule_list(sptr, CRULE_ALL);
981 report_crule_list(sptr, CRULE_MASK);
984 tstats(sptr, parv[0]);
990 report_configured_links(sptr, CONF_UWORLD);
996 nowr = CurrentTime - cli_since(&me);
997 send_reply(sptr, RPL_STATSUPTIME, nowr / 86400, (nowr / 3600) % 24,
998 (nowr / 60) % 60, nowr % 60);
999 send_reply(sptr, RPL_STATSCONN, max_connection_count, max_client_count);
1004 report_servers_verbose(sptr, stat);
1013 class_send_meminfo(sptr);
1014 send_listinfo(sptr, parv[0]);
1019 report_classes(sptr);
1023 count_memory(sptr, parv[0]);
1029 sendcmdto_one(&me, CMD_NOTICE, sptr, "%C :%s", sptr, *infotext++);
1032 send_reply(sptr, RPL_ENDOFSTATS, stat);