Software /
code /
prosody
Changeset
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 (2014-04-21) |
parents | 6228:4968d18e2c1e |
children | 6230:97d53caef325 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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})