comparison mod_smacks/mod_smacks.lua @ 757:92c6f84ec446

mod_smacks: Use require to import (thanks a lot, autocomplete)
author Kim Alvefur <zash@zash.se>
date Sun, 29 Jul 2012 22:24:11 +0200
parents ceea444983c0
children 464ed063a8f2
comparison
equal deleted inserted replaced
756:ceea444983c0 757:92c6f84ec446
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 local sessionmanager = require"core.sessionmanager";
23 23
24 local c2s_sessions = module:shared("/*/c2s/sessions"); 24 local c2s_sessions = module:shared("/*/c2s/sessions");
25 local session_registry = {}; 25 local session_registry = {};
26 26
27 local function can_do_smacks(session, advertise_only) 27 local function can_do_smacks(session, advertise_only)