Changeset

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 2710:956b75b0e9d9
children 2712:d89ab70808f6
files mod_mam/mod_mam.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
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