Mercurial > prosody-modules
comparison mod_smacks/mod_smacks.lua @ 641:06a78cba6499
mod_smacks: get_option+_number
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 18:20:18 +0100 |
parents | d87131b29bbd |
children | 842a8a3b0d81 |
comparison
equal
deleted
inserted
replaced
640:d87131b29bbd | 641:06a78cba6499 |
---|---|
13 local xmlns_errors = "urn:ietf:params:xml:ns:xmpp-stanzas"; | 13 local xmlns_errors = "urn:ietf:params:xml:ns:xmpp-stanzas"; |
14 local xmlns_delay = "urn:xmpp:delay"; | 14 local xmlns_delay = "urn:xmpp:delay"; |
15 | 15 |
16 local sm_attr = { xmlns = xmlns_sm }; | 16 local sm_attr = { xmlns = xmlns_sm }; |
17 | 17 |
18 local resume_timeout = module:get_option("smacks_hibernation_time", 300); | 18 local resume_timeout = module:get_option_number("smacks_hibernation_time", 300); |
19 local s2s_smacks = module:get_option_boolean("smacks_enabled_s2s", false); | 19 local s2s_smacks = module:get_option_boolean("smacks_enabled_s2s", false); |
20 local max_unacked_stanzas = 0; | 20 local max_unacked_stanzas = 0; |
21 | 21 |
22 local c2s_sessions = module:shared("/*/c2s/sessions"); | 22 local c2s_sessions = module:shared("/*/c2s/sessions"); |
23 local session_registry = {}; | 23 local session_registry = {}; |