changeset 1034:a0fbe738317c

mod_muc_log: Reduce hook priority to 1 (from 500), we want to log after any plugins have filtered/modified the incoming stanza (thanks Asterix/Maranda)
author Matthew Wild <mwild1@gmail.com>
date Sat, 01 Jun 2013 22:14:52 +0100
parents c6d4778bc0e8
children 09a5082a8162
files mod_muc_log/mod_muc_log.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_log/mod_muc_log.lua	Sat Jun 01 23:44:10 2013 +0200
+++ b/mod_muc_log/mod_muc_log.lua	Sat Jun 01 22:14:52 2013 +0100
@@ -117,9 +117,9 @@
 	end
 end
 
-module:hook("message/bare", log_if_needed, 50);
-module:hook("iq/bare", log_if_needed, 50);
-if log_presences then module:hook("presence/full", log_if_needed, 50); end
+module:hook("message/bare", logIfNeeded, 1);
+module:hook("iq/bare", logIfNeeded, 1);
+module:hook("presence/full", logIfNeeded, 1);
 
 local function reload()
 	inject_storage_config();