CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_11_06
Commit time: 2003-11-06 10:26:44 UTC
Modified files:
Tag: u2_10_11_06
ChangeLog ircd/s_misc.c
Log message:
Author: Isomer <[EMAIL PROTECTED]>
Log message:
Changed the userlog format (Closes: 836413)
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.129.2.8 ircu2.10/ChangeLog:1.290.2.129.2.9
--- ircu2.10/ChangeLog:1.290.2.129.2.8 Thu Nov 6 01:58:59 2003
+++ ircu2.10/ChangeLog Thu Nov 6 02:26:32 2003
@@ -1,4 +1,7 @@
2003-11-06 Isomer <[EMAIL PROTECTED]>
+ * ircd/s_misc.c: Change the logging format (Closes: 836413)
+
+2003-11-06 Isomer <[EMAIL PROTECTED]>
* ircd/s_err.c: Fix bug with ERR_UMODEUNKNOWNFLAG introduced by Isomer
2003-11-05 Isomer <[EMAIL PROTECTED]>
Index: ircu2.10/ircd/s_misc.c
diff -u ircu2.10/ircd/s_misc.c:1.24.2.8.6.1 ircu2.10/ircd/s_misc.c:1.24.2.8.6.2
--- ircu2.10/ircd/s_misc.c:1.24.2.8.6.1 Wed Nov 5 01:33:45 2003
+++ ircu2.10/ircd/s_misc.c Thu Nov 6 02:26:33 2003
@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
- * $Id: s_misc.c,v 1.24.2.8.6.1 2003/11/05 09:33:45 isomer Exp $
+ * $Id: s_misc.c,v 1.24.2.8.6.2 2003/11/06 10:26:33 isomer Exp $
*/
#include "config.h"
@@ -407,10 +407,13 @@
on_for = CurrentTime - cli_firsttime(victim);
if (IsUser(victim))
- log_write(LS_USER, L_TRACE, 0, "%s (%3d:%02d:%02d): [EMAIL PROTECTED] (%s)",
- myctime(cli_firsttime(victim)), on_for / 3600,
- (on_for % 3600) / 60, on_for % 60, cli_user(victim)->username,
- cli_sockhost(victim), cli_name(victim));
+ log_write(LS_USER, L_TRACE, 0, "%T %i [EMAIL PROTECTED] %s %s %s%s %s :%s",
+ cli_firsttime(victim), on_for,
+ cli_user(victim)->username, cli_sockhost(victim),
+ ircd_ntoa((const char *) &(cli_ip(victim))),
+ IsAccount(victim) ? cli_username(victim) : "0",
+ NumNick(victim), /* Two %'s */
+ cli_name(victim), cli_info(victim));
if (victim != cli_from(killer) /* The source knows already */
&& IsClient(victim)) /* Not a Ping struct or Log file */
----------------------- End of diff -----------------------