Comparison

plugins/mod_s2s/mod_s2s.lua @ 6474:ee13d7dfa988

Merge 0.10->trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 14 Oct 2014 10:59:54 +0100
parent 6473:7c8f58d2b331
child 6602:61b6a4fc65f1
child 6607:64e6b88b6b21
comparison
equal deleted inserted replaced
6469:93ffe59a9546 6474:ee13d7dfa988
45 45
46 local bouncy_stanzas = { message = true, presence = true, iq = true }; 46 local bouncy_stanzas = { message = true, presence = true, iq = true };
47 local function bounce_sendq(session, reason) 47 local function bounce_sendq(session, reason)
48 local sendq = session.sendq; 48 local sendq = session.sendq;
49 if not sendq then return; end 49 if not sendq then return; end
50 session.log("info", "sending error replies for "..#sendq.." queued stanzas because of failed outgoing connection to "..tostring(session.to_host)); 50 session.log("info", "Sending error replies for "..#sendq.." queued stanzas because of failed outgoing connection to "..tostring(session.to_host));
51 local dummy = { 51 local dummy = {
52 type = "s2sin"; 52 type = "s2sin";
53 send = function(s) 53 send = function(s)
54 (session.log or log)("error", "Replying to to an s2s error reply, please report this! Traceback: %s", traceback()); 54 (session.log or log)("error", "Replying to to an s2s error reply, please report this! Traceback: %s", traceback());
55 end; 55 end;