MUC: Fix inverted logic ()
authorMatthew Wild <mwild1@gmail.com>
Tue, 17 Jul 2018 19:32:36 +0100
changeset 9059 37e287113a8d
parent 9058 603887e0e69b
child 9060 df18f8398548
MUC: Fix inverted logic ()
plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Tue Jul 17 18:49:32 2018 +0100
+++ b/plugins/muc/muc.lib.lua	Tue Jul 17 19:32:36 2018 +0100
@@ -1088,7 +1088,7 @@
 		local invite = stanza:get_child("x", "http://jabber.org/protocol/muc#user"):get_child("invite");
 		local reason = invite:get_child_text("reason") or "";
 		stanza:tag("body")
-			:text(invite.attr.from.." invited you to the room "..room.jid..(reason == "" and (" ("..reason..")") or ""))
+			:text(invite.attr.from.." invited you to the room "..room.jid..(reason ~= "" and (" ("..reason..")") or ""))
 		:up();
 	end
 end);