Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2006-06-09 02:12:35 UTC

Modified files:
  Tag: u2_10_12_branch
     ircd/s_err.c ircd/gline.c ChangeLog

Log message:

Make /stats g slightly more informative.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.109 ircu2.10/ChangeLog:1.710.2.110
--- ircu2.10/ChangeLog:1.710.2.109      Wed Jun  7 19:11:21 2006
+++ ircu2.10/ChangeLog  Thu Jun  8 19:12:25 2006
@@ -1,3 +1,9 @@
+2006-06-08  Michael Poole <[EMAIL PROTECTED]>
+
+       * 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 <[EMAIL PROTECTED]>
 
        * doc/example.conf: Document the list_chan privilege.
Index: ircu2.10/ircd/gline.c
diff -u ircu2.10/ircd/gline.c:1.61 ircu2.10/ircd/gline.c:1.61.2.1
--- ircu2.10/ircd/gline.c:1.61  Thu Sep 22 13:42:21 2005
+++ ircu2.10/ircd/gline.c       Thu Jun  8 19:12:25 2006
@@ -19,7 +19,7 @@
  */
 /** @file
  * @brief Implementation of Gline manipulation functions.
- * @version $Id: gline.c,v 1.61 2005/09/22 20:42:21 entrope Exp $
+ * @version $Id: gline.c,v 1.61.2.1 2006/06/09 02:12:25 entrope Exp $
  */
 #include "config.h"
 
@@ -872,7 +872,9 @@
       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: ircu2.10/ircd/s_err.c
diff -u ircu2.10/ircd/s_err.c:1.72.2.2 ircu2.10/ircd/s_err.c:1.72.2.3
--- ircu2.10/ircd/s_err.c:1.72.2.2      Tue Mar 14 06:56:50 2006
+++ ircu2.10/ircd/s_err.c       Thu Jun  8 19:12:25 2006
@@ -18,7 +18,7 @@
  */
 /** @file
  * @brief Error handling support.
- * @version $Id: s_err.c,v 1.72.2.2 2006/03/14 14:56:50 entrope Exp $
+ * @version $Id: s_err.c,v 1.72.2.3 2006/06/09 02:12:25 entrope Exp $
  */
 #include "config.h"
 
@@ -526,7 +526,7 @@
 /* 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 */
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to