Mercurial > prosody-modules
comparison mod_smacks/mod_smacks.lua @ 756:ceea444983c0
mod_smacks: Import sessionmanager
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 29 Jul 2012 22:21:32 +0200 |
parents | bab7c4ace803 |
children | 92c6f84ec446 |
comparison
equal
deleted
inserted
replaced
755:bab7c4ace803 | 756:ceea444983c0 |
---|---|
17 | 17 |
18 local resume_timeout = module:get_option_number("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 = module:get_option_number("smacks_max_unacked_stanzas", 0); | 20 local max_unacked_stanzas = module:get_option_number("smacks_max_unacked_stanzas", 0); |
21 local core_process_stanza = prosody.core_process_stanza; | 21 local core_process_stanza = prosody.core_process_stanza; |
22 local sessionmanager = request"core.sessionmanager"; | |
22 | 23 |
23 local c2s_sessions = module:shared("/*/c2s/sessions"); | 24 local c2s_sessions = module:shared("/*/c2s/sessions"); |
24 local session_registry = {}; | 25 local session_registry = {}; |
25 | 26 |
26 local function can_do_smacks(session, advertise_only) | 27 local function can_do_smacks(session, advertise_only) |