Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 6229:8aa59b73f801
plugins/muc/muc.lib: Remove reversed conditionals when firing pre- events
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Mon, 21 Apr 2014 17:39:18 -0400 |
parent | 6227:bb75c011b15e |
child | 6231:bc12a8253f94 |
line wrap: on
line diff
--- 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})