Mercurial > prosody-modules
comparison mod_muc_log_http/muc_log_http/mod_muc_log_http.lua @ 1106:a53f9989a859
mod_muc_log_http: Have same default for showing presence as mod_muc_log
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 10 Jul 2013 13:16:33 +0200 |
parents | c6d4778bc0e8 |
children | d7bbacdabb8f |
comparison
equal
deleted
inserted
replaced
1105:7837a5f7c10d | 1106:a53f9989a859 |
---|---|
686 return true; | 686 return true; |
687 end | 687 end |
688 | 688 |
689 function module.load() | 689 function module.load() |
690 config = module:get_option("muc_log_http_config", {}); | 690 config = module:get_option("muc_log_http_config", {}); |
691 if module:get_option_boolean("muc_log_presences", false) then config.show_presences = true end | 691 if module:get_option_boolean("muc_log_presences", true) then config.show_presences = true end |
692 if config.show_status == nil then config.show_status = true; end | 692 if config.show_status == nil then config.show_status = true; end |
693 if config.show_join == nil then config.show_join = true; end | 693 if config.show_join == nil then config.show_join = true; end |
694 if config.url_base and type(config.url_base) == "string" then url_base = config.url_base; end | 694 if config.url_base and type(config.url_base) == "string" then url_base = config.url_base; end |
695 | 695 |
696 theme = config.theme or "prosody"; | 696 theme = config.theme or "prosody"; |