Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 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 |
parent | 5983:930109558aa2 |
child | 6054:7a5ddbaf758d |
child | 6092:16d5049fe842 |
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;