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".
--- 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);
}