Changeset

6004:09151d26560a

MUC: Tag PMs with <x>, like presence stanzas
author Kim Alvefur <zash@zash.se>
date Tue, 28 Jan 2014 19:21:21 +0100
parents 6003:28a90f5fea46
children 6005:98b768a41c9d
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Sun Jan 26 21:16:24 2014 +0100
+++ b/plugins/muc/muc.lib.lua	Tue Jan 28 19:21:21 2014 +0100
@@ -570,6 +570,7 @@
 				end
 				stanza.attr.from, stanza.attr.to, stanza.attr.id = from, to, id;
 			else -- message
+				stanza:tag("x", { xmlns = "http://jabber.org/protocol/muc#user" }):up();
 				stanza.attr.from = current_nick;
 				for jid in pairs(o_data.sessions) do
 					stanza.attr.to = jid;