aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-01-28 19:21:21 +0100
committerKim Alvefur <zash@zash.se>2014-01-28 19:21:21 +0100
commite843b1f3ec1100af915b4754e572855088b62b5b (patch)
treee1f35866c586418996c644197cac17d9ba60a3f4 /plugins
parent2f267b95431cd14696703b2913c1530899aff990 (diff)
downloadprosody-e843b1f3ec1100af915b4754e572855088b62b5b.tar.gz
prosody-e843b1f3ec1100af915b4754e572855088b62b5b.zip
MUC: Tag PMs with <x>, like presence stanzas
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 462d6893..d09c768e 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -570,6 +570,7 @@ function room_mt:handle_to_occupant(origin, stanza) -- PM, vCards, etc
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;