Comparison

plugins/mod_c2s.lua @ 5370:7838acadb0fa

mod_announce, mod_auth_anonymous, mod_c2s, mod_c2s, mod_component, mod_iq, mod_message, mod_presence, mod_tls: Access prosody.{hosts,bare_sessions,full_sessions} instead of the old globals
author Kim Alvefur <zash@zash.se>
date Sat, 23 Mar 2013 01:27:16 +0100
parent 5281:815c689f85ad
child 5505:0b6a99e6c1b1
comparison
equal deleted inserted replaced
5368:ab31dbb3a415 5370:7838acadb0fa
27 local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5); 27 local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5);
28 local opt_keepalives = module:get_option_boolean("tcp_keepalives", false); 28 local opt_keepalives = module:get_option_boolean("tcp_keepalives", false);
29 29
30 local sessions = module:shared("sessions"); 30 local sessions = module:shared("sessions");
31 local core_process_stanza = prosody.core_process_stanza; 31 local core_process_stanza = prosody.core_process_stanza;
32 local hosts = prosody.hosts;
32 33
33 local stream_callbacks = { default_ns = "jabber:client", handlestanza = core_process_stanza }; 34 local stream_callbacks = { default_ns = "jabber:client", handlestanza = core_process_stanza };
34 local listener = {}; 35 local listener = {};
35 36
36 --- Stream events handlers 37 --- Stream events handlers