mod_muc_block_pm/mod_muc_block_pm.lua
changeset 4031 291a45919988
parent 3640 afedc2430b0d
child 5595 c7e532ac6bf7
--- a/mod_muc_block_pm/mod_muc_block_pm.lua	Tue May 05 21:52:14 2020 +0200
+++ b/mod_muc_block_pm/mod_muc_block_pm.lua	Wed May 20 11:11:11 2020 +0200
@@ -11,6 +11,9 @@
 
 module:hook("message/full", function(event)
 	local stanza, origin = event.stanza, event.origin;
+	if stanza.attr.type == "error" then
+		return
+	end
 	local to, from = stanza.attr.to, stanza.attr.from;
 	local room = get_room_from_jid(bare_jid(to));
 	local to_occupant = room and room._occupants[to];