Author: Alex Badea <vampire@p16.pub.ro>
authorAlex Badea <vampire@p16.pub.ro>
Mon, 22 Apr 2002 12:42:24 +0000 (12:42 +0000)
committerAlex Badea <vampire@p16.pub.ro>
Mon, 22 Apr 2002 12:42:24 +0000 (12:42 +0000)
Log message:

Report information for 'me' too in /stats v.

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@751 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/m_stats.c

index 9ea1b817a3250cc61fe38cd2b1f8194b280c0a0d..6e3ffe01a53e6feadb4def4cf72b5864d21d86b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-04-22  Alex Badea  <vampire@p16.pub.ro>
+
+       * ircd/m_stats.c (report_servers_verbose): include 'me' in the
+       server list as well
+
 2002-21-05 Andrew Miller <a1kmm@mware.virtualave.net>
        * ircd/ircd_relay.c: stop an information leak about the
        the network topography from relayed messages.
index 4622b12da026e4aa68828bc64247179750b3a3ac..6a2c64ec174b397bec42c394851655f5e1f23daf 100644 (file)
@@ -180,8 +180,11 @@ static int report_servers_verbose(struct Client *sptr, char stat)
     send_reply(sptr, SND_EXPLICIT | RPL_STATSVERBOSE,
               "%-20s Burst Hops Numeric   Lag Clients/Max Proto "
               "%-10s :Info", "Servername", "LinkTS");
-  for (i = 0; i <= HighestFd; i++) {
-    if (!(acptr = LocalClientArray[i]) || !IsServer(acptr))
+  for (i = -1; i <= HighestFd; i++) {
+    if (i == -1)
+      /* Hack 'me' in the list as well */
+      acptr = &me;
+    else if (!(acptr = LocalClientArray[i]) || !IsServer(acptr))
       continue;
     send_reply(sptr, SND_EXPLICIT | RPL_STATSVERBOSE, stat == 'v' ?
               "%-20s %c%c    %4i %s %-4i %5i %5i %5i P%-2i   %Tu :%s" :