Software /
code /
prosody
Comparison
plugins/mod_s2s/mod_s2s.lua @ 7449:6943b1dd4e3d
mod_s2s: Remove compat with namespace issue from Prosody pre-0.6.2
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 30 May 2016 13:30:32 +0200 |
parent | 7277:7be7108cb6ed |
child | 7450:3ae19750cd46 |
child | 7466:f28fa742def3 |
comparison
equal
deleted
inserted
replaced
7448:34678ce8a6ac | 7449:6943b1dd4e3d |
---|---|
432 end | 432 end |
433 end | 433 end |
434 | 434 |
435 local function handleerr(err) log("error", "Traceback[s2s]: %s", traceback(tostring(err), 2)); end | 435 local function handleerr(err) log("error", "Traceback[s2s]: %s", traceback(tostring(err), 2)); end |
436 function stream_callbacks.handlestanza(session, stanza) | 436 function stream_callbacks.handlestanza(session, stanza) |
437 if stanza.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client | |
438 stanza.attr.xmlns = nil; | |
439 end | |
440 stanza = session.filter("stanzas/in", stanza); | 437 stanza = session.filter("stanzas/in", stanza); |
441 if stanza then | 438 if stanza then |
442 return xpcall(function () return core_process_stanza(session, stanza) end, handleerr); | 439 return xpcall(function () return core_process_stanza(session, stanza) end, handleerr); |
443 end | 440 end |
444 end | 441 end |