Mercurial > hg
diff mcabber/mcabber/xmpp.c @ 2090:16b04d64ec88
Add option to highlight timestamp added by server.
author | Hermitifier |
---|---|
date | Thu, 03 Apr 2014 16:11:16 +0200 |
parents | 91a8f3740a1a |
children | 1210a22726d3 |
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp.c Mon Nov 04 21:48:04 2013 +0100 +++ b/mcabber/mcabber/xmpp.c Thu Apr 03 16:11:16 2014 +0200 @@ -1220,6 +1220,9 @@ res = strchr(bjid, JID_RESOURCE_SEPARATOR); if (res) *res++ = 0; + // Timestamp? + timestamp = lm_message_node_get_timestamp(m->node); + p = lm_message_node_get_child_value(m->node, "subject"); if (p != NULL) { if (mstype != LM_MESSAGE_SUB_TYPE_GROUPCHAT) { @@ -1247,7 +1250,7 @@ else mbuf = g_strdup_printf("%s has cleared the topic", res); } - scr_WriteIncomingMessage(bjid, mbuf, 0, + scr_WriteIncomingMessage(bjid, mbuf, timestamp, HBB_PREFIX_INFO|HBB_PREFIX_NOFLAG, 0); if (settings_opt_get_int("log_muc_conf")) hlog_write_message(bjid, 0, -1, mbuf); @@ -1257,9 +1260,6 @@ } } - // Timestamp? - timestamp = lm_message_node_get_timestamp(m->node); - if (mstype == LM_MESSAGE_SUB_TYPE_ERROR) { x = lm_message_node_get_child(m->node, "error"); display_server_error(x, from);