From e59116c19a93c3ad0e00fb1c6d53ce5a2161d9ca Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 17 Jul 2018 20:37:56 +0100 Subject: MUC: Fix another logic inversion () --- plugins/muc/muc.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3