diff mod_archive/mod_archive.lua @ 243:6202ce4d12d6

mod_archive: added some config options. mod_archive_muc: added some config options.
author shinysky<shinysky1986(AT)gmail.com>
date Fri, 13 Aug 2010 20:21:39 +0800
parents 2659ee3e8d56
children dcb8e7d2c711
line wrap: on
line diff
--- a/mod_archive/mod_archive.lua	Thu Aug 12 23:07:14 2010 +0200
+++ b/mod_archive/mod_archive.lua	Fri Aug 13 20:21:39 2010 +0800
@@ -14,10 +14,10 @@
 local PREFS_DIR = "archive_prefs";
 local ARCHIVE_DIR = "archive";
 local xmlns_rsm = "http://jabber.org/protocol/rsm";
-local DEFAULT_MAX = 100;
 
-local FORCE_ARCHIVING = false;
-local AUTO_ARCHIVING_ENABLED = true;
+local DEFAULT_MAX = module:get_option_number("default_max", 100);
+local FORCE_ARCHIVING = module:get_option_boolean("force_archiving", false);
+local AUTO_ARCHIVING_ENABLED = module:get_option_boolean("auto_archiving_enabled", true);
 
 module:add_feature("urn:xmpp:archive");
 module:add_feature("urn:xmpp:archive:auto");