Software /
code /
prosody
Comparison
plugins/s2s/mod_s2s.lua @ 4752:27b724a698f8
mod_s2s: Add log() import
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 28 Apr 2012 02:56:10 +0100 |
parent | 4630:9502c0224caf |
child | 4755:844019f369a5 |
comparison
equal
deleted
inserted
replaced
4751:0c7ae4bfc835 | 4752:27b724a698f8 |
---|---|
26 local s2sout = module:require("s2sout"); | 26 local s2sout = module:require("s2sout"); |
27 | 27 |
28 local connect_timeout = module:get_option_number("s2s_timeout", 60); | 28 local connect_timeout = module:get_option_number("s2s_timeout", 60); |
29 | 29 |
30 local sessions = module:shared("sessions"); | 30 local sessions = module:shared("sessions"); |
31 | |
32 local log = module._log; | |
31 | 33 |
32 --- Handle stanzas to remote domains | 34 --- Handle stanzas to remote domains |
33 | 35 |
34 local bouncy_stanzas = { message = true, presence = true, iq = true }; | 36 local bouncy_stanzas = { message = true, presence = true, iq = true }; |
35 local function bounce_sendq(session, reason) | 37 local function bounce_sendq(session, reason) |