aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-07-17 20:37:56 +0100
committerMatthew Wild <mwild1@gmail.com>2018-07-17 20:37:56 +0100
commit28e1adcebb3d4b8b70df510cee8895e12951b20c (patch)
tree6888f622af83abe571da9f284d9fa0834cc38a2c /plugins/muc
parent852a959684822b430524ff14e5dfe143a384fbb0 (diff)
downloadprosody-28e1adcebb3d4b8b70df510cee8895e12951b20c.tar.gz
prosody-28e1adcebb3d4b8b70df510cee8895e12951b20c.zip
MUC: Fix another logic inversion ()
Diffstat (limited to 'plugins/muc')
-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 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);