diff mod_mam/mod_mam.lua @ 2711:ff1f7e61517f

mod_mam: Adjust event handler priorities to match guidelines in docs Avoids issues with mod_firewall dropped stanzas from being archived.
author Matthew Wild <mwild1@gmail.com>
date Fri, 28 Apr 2017 12:09:51 +0100
parents 2d5e0e2938d1
children 9f17d0f28d77
line wrap: on
line diff
--- 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