Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.c @ 651:936df057dda0
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.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 07 Jan 2006 10:32:55 +0100 |
parents | 3ad6675caaf1 |
children | b243d3b3ff1b |
comparison
equal
deleted
inserted
replaced
650:c2d50b97ced4 | 651:936df057dda0 |
---|---|
1156 mbuf = g_strdup_printf("You have joined as \"%s\"", ournick); | 1156 mbuf = g_strdup_printf("You have joined as \"%s\"", ournick); |
1157 | 1157 |
1158 // The 1st presence message could be for another room member | 1158 // The 1st presence message could be for another room member |
1159 if (strcmp(ournick, rname)) { | 1159 if (strcmp(ournick, rname)) { |
1160 // Display current mbuf and create a new message for the member | 1160 // Display current mbuf and create a new message for the member |
1161 scr_WriteIncomingMessage(roomjid, mbuf, usttime, | 1161 // Note: the usttime timestamp is related to the other member, |
1162 // so we use 0 here. | |
1163 scr_WriteIncomingMessage(roomjid, mbuf, 0, | |
1162 HBB_PREFIX_INFO|HBB_PREFIX_NOFLAG); | 1164 HBB_PREFIX_INFO|HBB_PREFIX_NOFLAG); |
1163 if (log_muc_conf) hlog_write_message(roomjid, 0, FALSE, mbuf); | 1165 if (log_muc_conf) hlog_write_message(roomjid, 0, FALSE, mbuf); |
1164 g_free(mbuf); | 1166 g_free(mbuf); |
1165 mbuf = g_strdup_printf("%s has joined", rname); | 1167 mbuf = g_strdup_printf("%s has joined", rname); |
1166 } | 1168 } |