MUC: Fix a timestamp issue when joining a room
The timestamp displayed was incorrect when the first room presence
packet received from the conference server is not our presence.
We use "now", when it happens.
--- a/mcabber/src/jabglue.c Sat Jan 07 01:31:41 2006 +0100
+++ b/mcabber/src/jabglue.c Sat Jan 07 10:32:55 2006 +0100
@@ -1158,7 +1158,9 @@
// The 1st presence message could be for another room member
if (strcmp(ournick, rname)) {
// Display current mbuf and create a new message for the member
- scr_WriteIncomingMessage(roomjid, mbuf, usttime,
+ // Note: the usttime timestamp is related to the other member,
+ // so we use 0 here.
+ scr_WriteIncomingMessage(roomjid, mbuf, 0,
HBB_PREFIX_INFO|HBB_PREFIX_NOFLAG);
if (log_muc_conf) hlog_write_message(roomjid, 0, FALSE, mbuf);
g_free(mbuf);