# HG changeset patch # User tmolitor # Date 1520457703 -3600 # Node ID 0d2d4d5bb5f53aae48da0fa8aa06b9181ab2490f # Parent 3fb4f72b3dfd808cdc8f8f1d63af348f2224f47e [mod_mam] Fix hook priority for local clients, too (see also commit 2af42a3af131) diff -r 3fb4f72b3dfd -r 0d2d4d5bb5f5 mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Wed Mar 07 20:47:27 2018 +0100 +++ b/mod_mam/mod_mam.lua Wed Mar 07 22:21:43 2018 +0100 @@ -406,10 +406,14 @@ end -- Stanzas sent by local clients -module:hook("pre-message/bare", c2s_message_handler, 0); -module:hook("pre-message/full", c2s_message_handler, 0); +local priority = 0.075 +assert(priority < 0.1, "priority must be after mod_firewall"); +assert(priority > 0.05, "priority must be before mod_carbons"); +assert(priority > 0.01, "priority must be before strip_stanza_id"); +module:hook("pre-message/bare", c2s_message_handler, priority); +module:hook("pre-message/full", c2s_message_handler, priority); -- Stanszas to local clients -local priority = 0.075 +priority = 0.075 assert(priority > 0, "priority must be before mod_message"); assert(priority < 0.1, "priority must be after mod_firewall"); assert(priority > 0.05, "priority must be before mod_carbons");