diff options
author | daurnimator <quae@daurnimator.com> | 2014-04-21 17:39:18 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-04-21 17:39:18 -0400 |
commit | 1a0787a68d52dd7b91760177059d6d9e809b7c1a (patch) | |
tree | f7d81e09cc80e2647f0bea7512f34706fb6d0378 /plugins/muc/muc.lib.lua | |
parent | 943088da0cc04e5b110d5d7655d12d88613c2c18 (diff) | |
download | prosody-1a0787a68d52dd7b91760177059d6d9e809b7c1a.tar.gz prosody-1a0787a68d52dd7b91760177059d6d9e809b7c1a.zip |
plugins/muc/muc.lib: Remove reversed conditionals when firing pre- events
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 4 |
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}) |