Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 9055:603887e0e69b
Backed out changeset 0bf0ff3b0f91 (incorrect fix)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 17 Jul 2018 18:49:32 +0100 |
parent | 9054:0bf0ff3b0f91 |
child | 9056:37e287113a8d |
comparison
equal
deleted
inserted
replaced
9054:0bf0ff3b0f91 | 9055:603887e0e69b |
---|---|
1086 local room, stanza = event.room, event.stanza; | 1086 local room, stanza = event.room, event.stanza; |
1087 if not stanza:get_child("body") then | 1087 if not stanza:get_child("body") then |
1088 local invite = stanza:get_child("x", "http://jabber.org/protocol/muc#user"):get_child("invite"); | 1088 local invite = stanza:get_child("x", "http://jabber.org/protocol/muc#user"):get_child("invite"); |
1089 local reason = invite:get_child_text("reason") or ""; | 1089 local reason = invite:get_child_text("reason") or ""; |
1090 stanza:tag("body") | 1090 stanza:tag("body") |
1091 :text(jid_bare(stanza.attr.from).." invited you to the room "..room.jid..(reason == "" and (" ("..reason..")") or "")) | 1091 :text(invite.attr.from.." invited you to the room "..room.jid..(reason == "" and (" ("..reason..")") or "")) |
1092 :up(); | 1092 :up(); |
1093 end | 1093 end |
1094 end); | 1094 end); |
1095 | 1095 |
1096 function room_mt:handle_mediated_decline(origin, stanza) | 1096 function room_mt:handle_mediated_decline(origin, stanza) |