Mercurial > prosody-modules
comparison mod_muc_log/mod_muc_log.lua @ 1105:7837a5f7c10d
mod_muc_log: Don't change defaults across versions!
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 10 Jul 2013 12:42:46 +0200 |
parents | 34c86e4d6c9d |
children | 11e2598baafb |
comparison
equal
deleted
inserted
replaced
1104:34c86e4d6c9d | 1105:7837a5f7c10d |
---|---|
9 local error_reply = require "util.stanza".error_reply; | 9 local error_reply = require "util.stanza".error_reply; |
10 local storagemanager = storagemanager; | 10 local storagemanager = storagemanager; |
11 local muc_form_config_option = "muc#roomconfig_enablelogging" | 11 local muc_form_config_option = "muc#roomconfig_enablelogging" |
12 | 12 |
13 local mod_host = module:get_host(); | 13 local mod_host = module:get_host(); |
14 local log_presences = module:get_option_boolean("muc_log_presences", false); | 14 local log_presences = module:get_option_boolean("muc_log_presences", true); |
15 | 15 |
16 -- Helper Functions | 16 -- Helper Functions |
17 | 17 |
18 local function inject_storage_config() | 18 local function inject_storage_config() |
19 local _storage = cm.getconfig()[mod_host].storage; | 19 local _storage = cm.getconfig()[mod_host].storage; |