CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_11_06
Commit time: 2003-11-05 10:47:14 UTC

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

Log message:

Author: Isomer <[EMAIL PROTECTED]>
Log message:

Display realname glines in /stats g

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.129.2.6 ircu2.10/ChangeLog:1.290.2.129.2.7
--- ircu2.10/ChangeLog:1.290.2.129.2.6  Wed Nov  5 01:56:56 2003
+++ ircu2.10/ChangeLog  Wed Nov  5 02:47:04 2003
@@ -1,4 +1,7 @@
 2003-11-05 Isomer <[EMAIL PROTECTED]>
+       * ircd/gline.c: Display realname glines in /stats g
+
+2003-11-05 Isomer <[EMAIL PROTECTED]>
        * ircd/m_whois.c: On remote whois, show +s local channels with a *
        prefix to opers.
 
Index: ircu2.10/ircd/gline.c
diff -u ircu2.10/ircd/gline.c:1.38.2.8.2.3 ircu2.10/ircd/gline.c:1.38.2.8.2.4
--- ircu2.10/ircd/gline.c:1.38.2.8.2.3  Wed Nov  5 01:19:44 2003
+++ ircu2.10/ircd/gline.c       Wed Nov  5 02:47:04 2003
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: gline.c,v 1.38.2.8.2.3 2003/11/05 09:19:44 isomer Exp $
+ * $Id: gline.c,v 1.38.2.8.2.4 2003/11/05 10:47:04 isomer Exp $
  */
 #include "config.h"
 
@@ -801,8 +801,9 @@
 
     if (gline->gl_expire <= CurrentTime)
       gline_free(gline);
-    else if (!GlineIsRealName(gline))
-      send_reply(sptr, RPL_STATSGLINE, 'G', gline->gl_user, gline->gl_host,
+    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);
   }
 }
Index: ircu2.10/ircd/s_err.c
diff -u ircu2.10/ircd/s_err.c:1.30.2.9.2.1 ircu2.10/ircd/s_err.c:1.30.2.9.2.2
--- ircu2.10/ircd/s_err.c:1.30.2.9.2.1  Wed Nov  5 01:19:44 2003
+++ ircu2.10/ircd/s_err.c       Wed Nov  5 02:47:04 2003
@@ -16,7 +16,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: s_err.c,v 1.30.2.9.2.1 2003/11/05 09:19:44 isomer Exp $
+ * $Id: s_err.c,v 1.30.2.9.2.2 2003/11/05 10:47:04 isomer Exp $
  */
 #include "config.h"
 
@@ -526,7 +526,7 @@
 /* 246 */
   { RPL_STATSTLINE, "%c %s %s", "246" },
 /* 247 */
-  { RPL_STATSGLINE, "%c [EMAIL PROTECTED] %Tu :%s", "247" },
+  { RPL_STATSGLINE, "%c %s%s%s %Tu :%s", "247" },
 /* 248 */
   { RPL_STATSULINE, "%c %s %s %s %d %d", "248" },
 /* 249 */
----------------------- End of diff -----------------------

Reply via email to