plugins/mod_s2s/mod_s2s.lua
changeset 5505 0b6a99e6c1b1
parent 5474 11f08a27c417
child 5522 3912c9264ef0
equal deleted inserted replaced
5504:b760b5f0c2b0 5505:0b6a99e6c1b1
   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);