Make /stats g slightly more informative.
authorMichael Poole <mdpoole@troilus.org>
Fri, 9 Jun 2006 02:12:25 +0000 (02:12 +0000)
committerMichael Poole <mdpoole@troilus.org>
Fri, 9 Jun 2006 02:12:25 +0000 (02:12 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1665 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/gline.c
ircd/s_err.c

index ab4289430419d7bca7bb14669e75a7cbf054e0a4..5f74dce41d21a2361406cc0ad304c965cced246f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-08  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/gline.c (gline_stats): Show activation state in /stats g.
+
+       * ircd/s_err.c (RPL_STATSGLINE): Update format string to match.
+
 2006-06-07  Michael Poole <mdpoole@troilus.org>
 
        * doc/example.conf: Document the list_chan privilege.
index e3dd7bc6d6edd729093a53ef8f8786b76f3267b0..89f79f077bf691838a6e43dd562999bd467f97c3 100644 (file)
@@ -872,7 +872,9 @@ gline_stats(struct Client *sptr, const struct StatDesc *sd,
       send_reply(sptr, RPL_STATSGLINE, 'G', gline->gl_user,
                  gline->gl_host ? "@" : "",
                  gline->gl_host ? gline->gl_host : "",
-                gline->gl_expire + TSoffset, gline->gl_reason);
+                gline->gl_expire + TSoffset,
+                 GlineIsActive(gline) ? '+' : '-',
+                 gline->gl_reason);
   }
 }
 
index 7bda8797b1d4befe1a3dc71d3402571ce4e41c6b..6beece82f3ee02644f56bb0fefa4e7eb644f4d74 100644 (file)
@@ -526,7 +526,7 @@ static Numeric replyTable[] = {
 /* 246 */
   { RPL_STATSTLINE, "%c %s %s", "246" },
 /* 247 */
-  { RPL_STATSGLINE, "%c %s%s%s %Tu :%s", "247" },
+  { RPL_STATSGLINE, "%c %s%s%s %Tu %c :%s", "247" },
 /* 248 */
   { RPL_STATSULINE, "U %s", "248" },
 /* 249 */