# HG changeset patch # User Matthew Wild # Date 1493377791 -3600 # Node ID ff1f7e61517f8498bc5bccaf2c4e5989e09a4193 # Parent 956b75b0e9d9718ffe64521a91f5f530abe7c094 mod_mam: Adjust event handler priorities to match guidelines in docs Avoids issues with mod_firewall dropped stanzas from being archived. diff -r 956b75b0e9d9 -r ff1f7e61517f mod_mam/mod_mam.lua --- a/mod_mam/mod_mam.lua Thu Apr 27 19:55:18 2017 +0200 +++ b/mod_mam/mod_mam.lua Fri Apr 28 12:09:51 2017 +0100 @@ -386,11 +386,11 @@ end -- Stanzas sent by local clients -module:hook("pre-message/bare", c2s_message_handler, 2); -module:hook("pre-message/full", c2s_message_handler, 2); +module:hook("pre-message/bare", c2s_message_handler, 0); +module:hook("pre-message/full", c2s_message_handler, 0); -- Stanszas to local clients -module:hook("message/bare", message_handler, 2); -module:hook("message/full", message_handler, 2); +module:hook("message/bare", message_handler, 0); +module:hook("message/full", message_handler, 0); module:add_feature(xmlns_mam0); -- COMPAT with XEP-0313 v 0.1