Comparison

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
comparison
equal deleted inserted replaced
1049:59f031d1cd38 1050:a0aff903659b
116 end 116 end
117 end 117 end
118 end 118 end
119 119
120 module:hook("message/bare", log_if_needed, 1); 120 module:hook("message/bare", log_if_needed, 1);
121 module:hook("iq/bare", log_if_needed, 1); 121 if log_presences then
122 if log_presences then module:hook("presence/full", log_if_needed, 1); end 122 module:hook("iq/bare", log_if_needed, 1);
123 module:hook("presence/full", log_if_needed, 1);
124 end
123 125
124 local function reload() 126 local function reload()
125 inject_storage_config(); 127 inject_storage_config();
126 end 128 end
127 129