aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
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
commite5faa1bfa21a99addfa92f637af6d8cf32144b34 (patch)
treee1f35866c586418996c644197cac17d9ba60a3f4 /plugins/muc/muc.lib.lua
parentf73e31b9c2bcade1f146ff957117ae02e15f537e (diff)
downloadprosody-e5faa1bfa21a99addfa92f637af6d8cf32144b34.tar.gz
prosody-e5faa1bfa21a99addfa92f637af6d8cf32144b34.zip
MUC: Tag PMs with <x>, like presence stanzas
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-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;