equal
deleted
inserted
replaced
427 session.log("info", "Session closed by remote with error: %s", text); |
427 session.log("info", "Session closed by remote with error: %s", text); |
428 session:close(nil, text); |
428 session:close(nil, text); |
429 end |
429 end |
430 end |
430 end |
431 |
431 |
432 local function handleerr(err) log("error", "Traceback[s2s]: %s: %s", tostring(err), traceback()); end |
432 local function handleerr(err) log("error", "Traceback[s2s]: %s", traceback(tostring(err), 2)); end |
433 function stream_callbacks.handlestanza(session, stanza) |
433 function stream_callbacks.handlestanza(session, stanza) |
434 if stanza.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client |
434 if stanza.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client |
435 stanza.attr.xmlns = nil; |
435 stanza.attr.xmlns = nil; |
436 end |
436 end |
437 stanza = session.filter("stanzas/in", stanza); |
437 stanza = session.filter("stanzas/in", stanza); |