# HG changeset patch # User Kim Alvefur # Date 1639832313 -3600 # Node ID 4cbe7979a92ae7257d3ee594215ed51f811bb1f0 # Parent ef0f174488af40e4ae24f25716dc6a0b83c198a2 mod_smacks: Fix traceback when bouncing unacked stanzas Errors sent from handle_unacked_stanzas() should usually not be sent to the session itself, but if one is, it should not be queued. diff -r ef0f174488af -r 4cbe7979a92a plugins/mod_smacks.lua --- a/plugins/mod_smacks.lua Sat Dec 18 13:48:57 2021 +0100 +++ b/plugins/mod_smacks.lua Sat Dec 18 13:58:33 2021 +0100 @@ -150,6 +150,7 @@ -- However, when using mod_smacks with mod_websocket, then mod_websocket's -- stanzas/out filter can get called before this one and adds the xmlns. if session.resending_unacked then return stanza end + if not session.smacks then return stanza end local is_stanza = st.is_stanza(stanza) and (not stanza.attr.xmlns or stanza.attr.xmlns == 'jabber:client') and not stanza.name:find":";