diff options
author | Kim Alvefur <zash@zash.se> | 2014-01-28 19:21:21 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-01-28 19:21:21 +0100 |
commit | e843b1f3ec1100af915b4754e572855088b62b5b (patch) | |
tree | e1f35866c586418996c644197cac17d9ba60a3f4 | |
parent | 2f267b95431cd14696703b2913c1530899aff990 (diff) | |
download | prosody-e843b1f3ec1100af915b4754e572855088b62b5b.tar.gz prosody-e843b1f3ec1100af915b4754e572855088b62b5b.zip |
MUC: Tag PMs with <x>, like presence stanzas
-rw-r--r-- | plugins/muc/muc.lib.lua | 1 |
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; |