Mercurial > prosody-modules
comparison mod_bidi/mod_bidi.lua @ 898:4aa473216432
mod_bidi: Missing import of debug.trackeback()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 16 Jan 2013 08:33:56 +0100 |
parents | 844b6ef5d4c4 |
children | 4cd018025a26 |
comparison
equal
deleted
inserted
replaced
897:844b6ef5d4c4 | 898:4aa473216432 |
---|---|
11 | 11 |
12 local xmlns_bidi_feature = "urn:xmpp:features:bidi" | 12 local xmlns_bidi_feature = "urn:xmpp:features:bidi" |
13 local xmlns_bidi = "urn:xmpp:bidi"; | 13 local xmlns_bidi = "urn:xmpp:bidi"; |
14 local noop = function () end | 14 local noop = function () end |
15 local core_process_stanza = prosody.core_process_stanza; | 15 local core_process_stanza = prosody.core_process_stanza; |
16 local traceback = debug.traceback; | |
16 | 17 |
17 local function handleerr(err) log("error", "Traceback[s2s]: %s: %s", tostring(err), traceback()); end | 18 local function handleerr(err) log("error", "Traceback[s2s]: %s: %s", tostring(err), traceback()); end |
18 local function handlestanza(session, stanza) | 19 local function handlestanza(session, stanza) |
19 if stanza.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client | 20 if stanza.attr.xmlns == "jabber:client" then --COMPAT: Prosody pre-0.6.2 may send jabber:client |
20 stanza.attr.xmlns = nil; | 21 stanza.attr.xmlns = nil; |