Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 9057:df18f8398548
MUC: Fix another logic inversion ()
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 17 Jul 2018 20:37:56 +0100 |
parent | 9056:37e287113a8d |
child | 9081:ce57c69a20e2 |
comparison
equal
deleted
inserted
replaced
9056:37e287113a8d | 9057:df18f8398548 |
---|---|
1130 local room, stanza = event.room, event.stanza; | 1130 local room, stanza = event.room, event.stanza; |
1131 if not stanza:get_child("body") then | 1131 if not stanza:get_child("body") then |
1132 local decline = stanza:get_child("x", "http://jabber.org/protocol/muc#user"):get_child("decline"); | 1132 local decline = stanza:get_child("x", "http://jabber.org/protocol/muc#user"):get_child("decline"); |
1133 local reason = decline:get_child_text("reason") or ""; | 1133 local reason = decline:get_child_text("reason") or ""; |
1134 stanza:tag("body") | 1134 stanza:tag("body") |
1135 :text(decline.attr.from.." declined your invite to the room "..room.jid..(reason == "" and (" ("..reason..")") or "")) | 1135 :text(decline.attr.from.." declined your invite to the room "..room.jid..(reason ~= "" and (" ("..reason..")") or "")) |
1136 :up(); | 1136 :up(); |
1137 end | 1137 end |
1138 end); | 1138 end); |
1139 | 1139 |
1140 function room_mt:handle_message_to_room(origin, stanza) | 1140 function room_mt:handle_message_to_room(origin, stanza) |