Diff

mod_muc_log/mod_muc_log.lua @ 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
parent 1032:b69e5d63a4fe
child 1037:892272432703
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();