Software /
code /
prosody-modules
Changeset
2914:0d2d4d5bb5f5
[mod_mam] Fix hook priority for local clients, too (see also commit 2af42a3af131)
author | tmolitor <thilo@eightysoft.de> |
---|---|
date | Wed, 07 Mar 2018 22:21:43 +0100 |
parents | 2913:3fb4f72b3dfd |
children | 2915:b8f2e86df7ce |
files | mod_mam/mod_mam.lua |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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");