Software /
code /
prosody-modules
Comparison
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 |
parent | 239:2659ee3e8d56 |
child | 632:dcb8e7d2c711 |
comparison
equal
deleted
inserted
replaced
242:161067865850 | 243:6202ce4d12d6 |
---|---|
12 local um = require "core.usermanager"; | 12 local um = require "core.usermanager"; |
13 | 13 |
14 local PREFS_DIR = "archive_prefs"; | 14 local PREFS_DIR = "archive_prefs"; |
15 local ARCHIVE_DIR = "archive"; | 15 local ARCHIVE_DIR = "archive"; |
16 local xmlns_rsm = "http://jabber.org/protocol/rsm"; | 16 local xmlns_rsm = "http://jabber.org/protocol/rsm"; |
17 local DEFAULT_MAX = 100; | 17 |
18 | 18 local DEFAULT_MAX = module:get_option_number("default_max", 100); |
19 local FORCE_ARCHIVING = false; | 19 local FORCE_ARCHIVING = module:get_option_boolean("force_archiving", false); |
20 local AUTO_ARCHIVING_ENABLED = true; | 20 local AUTO_ARCHIVING_ENABLED = module:get_option_boolean("auto_archiving_enabled", true); |
21 | 21 |
22 module:add_feature("urn:xmpp:archive"); | 22 module:add_feature("urn:xmpp:archive"); |
23 module:add_feature("urn:xmpp:archive:auto"); | 23 module:add_feature("urn:xmpp:archive:auto"); |
24 module:add_feature("urn:xmpp:archive:manage"); | 24 module:add_feature("urn:xmpp:archive:manage"); |
25 module:add_feature("urn:xmpp:archive:manual"); | 25 module:add_feature("urn:xmpp:archive:manual"); |