# HG changeset patch # User daurnimator # Date 1398116358 14400 # Node ID 8aa59b73f80143da23715b5c0e287c29154e9531 # Parent 4968d18e2c1e29e4b1016f9ab952ceccc025b1de plugins/muc/muc.lib: Remove reversed conditionals when firing pre- events diff -r 4968d18e2c1e -r 8aa59b73f801 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Fri Apr 18 12:20:07 2014 -0400 +++ b/plugins/muc/muc.lib.lua Mon Apr 21 17:39:18 2014 -0400 @@ -822,7 +822,7 @@ 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 @@ 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})