Diff

mod_muc_log/mod_muc_log.lua @ 1050:a0aff903659b

mod_muc_log: don't log iqs either if presences are disabled, little use and may trigger "false positives".
author Marco Cirillo <maranda@lightwitch.org>
date Wed, 05 Jun 2013 21:05:41 +0200
parent 1041:7153b723fd87
child 1104:34c86e4d6c9d
line wrap: on
line diff
--- a/mod_muc_log/mod_muc_log.lua	Mon Jun 03 20:54:06 2013 +0200
+++ b/mod_muc_log/mod_muc_log.lua	Wed Jun 05 21:05:41 2013 +0200
@@ -118,8 +118,10 @@
 end
 
 module:hook("message/bare", log_if_needed, 1);
-module:hook("iq/bare", log_if_needed, 1);
-if log_presences then module:hook("presence/full", log_if_needed, 1); end
+if log_presences then
+	module:hook("iq/bare", log_if_needed, 1);
+	module:hook("presence/full", log_if_needed, 1); 
+end
 
 local function reload()
 	inject_storage_config();