# HG changeset patch # User JC Brand # Date 1589965871 -7200 # Node ID 291a459199886921f4521cc11e64e91f8d5f6cf5 # Parent e3964f876b5d2c248acfaabb3f4946907c58758b mod_muc_block_pm: Don't respond to error stanzas diff -r e3964f876b5d -r 291a45919988 mod_muc_block_pm/mod_muc_block_pm.lua --- 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];