aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-04-21 17:39:18 -0400
committerdaurnimator <quae@daurnimator.com>2014-04-21 17:39:18 -0400
commit126eb3e5b9ea0372a264ddff6b4be37bd2029529 (patch)
treef7d81e09cc80e2647f0bea7512f34706fb6d0378 /plugins/muc
parent70a87e5d5e5fe24252d03a5263243c19745ea72d (diff)
downloadprosody-126eb3e5b9ea0372a264ddff6b4be37bd2029529.tar.gz
prosody-126eb3e5b9ea0372a264ddff6b4be37bd2029529.zip
plugins/muc/muc.lib: Remove reversed conditionals when firing pre- events
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 61520354..2e48ade1 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -822,7 +822,7 @@ function room_mt:handle_mediated_invite(origin, stanza)
if not invitee then
origin.send(st.error_reply(stanza, "cancel", "jid-malformed"));
return true;
- elseif not module:fire_event("muc-pre-invite", {room = self, origin = origin, stanza = stanza}) then
+ elseif module:fire_event("muc-pre-invite", {room = self, origin = origin, stanza = stanza}) then
return true;
end
local invite = st.message({from = self.jid, to = invitee, id = stanza.attr.id})
@@ -863,7 +863,7 @@ function room_mt:handle_mediated_decline(origin, stanza)
if not declinee then
origin.send(st.error_reply(stanza, "cancel", "jid-malformed"));
return true;
- elseif not module:fire_event("muc-pre-decline", {room = self, origin = origin, stanza = stanza}) then
+ elseif module:fire_event("muc-pre-decline", {room = self, origin = origin, stanza = stanza}) then
return true;
end
local decline = st.message({from = self.jid, to = declinee, id = stanza.attr.id})