Software /
code /
prosody
Changeset
9057:df18f8398548
MUC: Fix another logic inversion ()
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 17 Jul 2018 20:37:56 +0100 |
parents | 9056:37e287113a8d |
children | 9058:35421a289a75 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Tue Jul 17 19:32:36 2018 +0100 +++ b/plugins/muc/muc.lib.lua Tue Jul 17 20:37:56 2018 +0100 @@ -1132,7 +1132,7 @@ local decline = stanza:get_child("x", "http://jabber.org/protocol/muc#user"):get_child("decline"); local reason = decline:get_child_text("reason") or ""; stanza:tag("body") - :text(decline.attr.from.." declined your invite to the room "..room.jid..(reason == "" and (" ("..reason..")") or "")) + :text(decline.attr.from.." declined your invite to the room "..room.jid..(reason ~= "" and (" ("..reason..")") or "")) :up(); end end);