2004-09-11 Kevin L Mitchell <klmitch@mit.edu>
+ * ircd/gline.c (gline_add): fix GLINE logging (Bug #750927)
+
* ircd/channel.c: removing limits shouldn't gobble an argument;
this was a subtle interaction issue with modebuf...fixed by adding
MODE_LIMIT to modebuf_flush_int() and short-circuiting
/* and log it */
log_write(LS_GLINE, L_INFO, LOG_NOSNOTICE,
- "%#C adding %s %s for %s, expiring at %Tu: %s", sptr,
+ "%#C adding %s %s for %s%s%s, expiring at %Tu: %s", sptr,
flags & GLINE_LOCAL ? "local" : "global",
- flags & GLINE_BADCHAN ? "BADCHAN" : "GLINE", userhost,
+ flags & GLINE_BADCHAN ? "BADCHAN" : "GLINE", user,
+ flags & (GLINE_BADCHAN|GLINE_REALNAME) ? "" : "@",
+ flags & (GLINE_BADCHAN|GLINE_REALNAME) ? "" : host,
expire + TSoffset, reason);
/* make the gline */