aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-07-17 19:32:36 +0100
committerMatthew Wild <mwild1@gmail.com>2018-07-17 19:32:36 +0100
commit852a959684822b430524ff14e5dfe143a384fbb0 (patch)
tree15007123f44606a221fcbd34466c287f71469de2
parent0f6cb9b998fa3b412b2b9385ad473bb07d7bb86f (diff)
downloadprosody-852a959684822b430524ff14e5dfe143a384fbb0.tar.gz
prosody-852a959684822b430524ff14e5dfe143a384fbb0.zip
MUC: Fix inverted logic ()
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index fc22a630..ba9e7c04 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1088,7 +1088,7 @@ module:hook("muc-invite", function(event)
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);