comparison mod_bidi/mod_bidi.lua @ 899:4cd018025a26

mod_bidi: Work with 0.8
author Kim Alvefur <zash@zash.se>
date Wed, 16 Jan 2013 08:35:13 +0100
parents 4aa473216432
children 4e235e565693
comparison
equal deleted inserted replaced
898:4aa473216432 899:4cd018025a26
10 local jid_split = require"util.jid".prepped_split; 10 local jid_split = require"util.jid".prepped_split;
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 or core_process_stanza;
16 local traceback = debug.traceback; 16 local traceback = debug.traceback;
17 17
18 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
19 local function handlestanza(session, stanza) 19 local function handlestanza(session, stanza)
20 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