diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-07-17 20:37:56 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-07-17 20:37:56 +0100 |
commit | e59116c19a93c3ad0e00fb1c6d53ce5a2161d9ca (patch) | |
tree | 6888f622af83abe571da9f284d9fa0834cc38a2c | |
parent | bfe91dfb5f55807f6b2f3d5567e39fd959b81bef (diff) | |
download | prosody-e59116c19a93c3ad0e00fb1c6d53ce5a2161d9ca.tar.gz prosody-e59116c19a93c3ad0e00fb1c6d53ce5a2161d9ca.zip |
MUC: Fix another logic inversion ()
-rw-r--r-- | plugins/muc/muc.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index ba9e7c04..89344c53 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -1132,7 +1132,7 @@ module:hook("muc-decline", function(event) 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); |