Software /
code /
prosody-modules
Changeset
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 |
parents | 1049:59f031d1cd38 |
children | 1051:c66ea26e4224 |
files | mod_muc_log/mod_muc_log.lua |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
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();