--- 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})