Comparison

mod_smacks/mod_smacks.lua @ 754:713c6791fbcc

mod_smacks: Import prosody.core_process_stanza()
author Kim Alvefur <zash@zash.se>
date Sun, 29 Jul 2012 21:38:19 +0200
parent 642:842a8a3b0d81
child 755:bab7c4ace803
comparison
equal deleted inserted replaced
753:9d5731af2c27 754:713c6791fbcc
16 local sm_attr = { xmlns = xmlns_sm }; 16 local sm_attr = { xmlns = xmlns_sm };
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 22
22 local c2s_sessions = module:shared("/*/c2s/sessions"); 23 local c2s_sessions = module:shared("/*/c2s/sessions");
23 local session_registry = {}; 24 local session_registry = {};
24 25
25 local function can_do_smacks(session, advertise_only) 26 local function can_do_smacks(session, advertise_only)