plugins/muc/muc.lib: Remove reversed conditionals when firing pre- events
authordaurnimator <quae@daurnimator.com>
Mon, 21 Apr 2014 17:39:18 -0400
changeset 6229 8aa59b73f801
parent 6228 4968d18e2c1e
child 6230 97d53caef325
plugins/muc/muc.lib: Remove reversed conditionals when firing pre- events
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})