# HG changeset patch # User Mikael Berthe # Date 1146648521 -7200 # Node ID 80434fde7cfa1bb0296c54a0dfd2c8459bcf35a5 # Parent 114f08e3c29a0125c6b1ea5a44c2b3d188b1b542 Display presence notification timestamps when they exist These timestamps were used in the roster, but not in the buffer window message nor in the history logfile. Reported by "ze". diff -r 114f08e3c29a -r 80434fde7cfa mcabber/src/hooks.c --- a/mcabber/src/hooks.c Sun Apr 30 14:51:02 2006 +0200 +++ b/mcabber/src/hooks.c Wed May 03 11:28:41 2006 +0200 @@ -240,7 +240,8 @@ bn = g_strdup_printf("Buddy status has changed: [%c>%c] %s", imstatus2char[oldstat], imstatus2char[status], ((status_msg) ? status_msg : "")); - scr_WriteIncomingMessage(jid, bn, 0, HBB_PREFIX_INFO|HBB_PREFIX_NOFLAG); + scr_WriteIncomingMessage(jid, bn, timestamp, + HBB_PREFIX_INFO|HBB_PREFIX_NOFLAG); g_free(bn); } } @@ -249,7 +250,7 @@ role_none, affil_none, NULL); buddylist_build(); scr_DrawRoster(); - hlog_write_status(jid, 0, status, status_msg); + hlog_write_status(jid, timestamp, status, status_msg); // External command hk_ext_cmd(jid, 'S', imstatus2char[status], NULL); }