core/stanza_router.lua

branch
tls
changeset 66
018705d57f09
parent 31
aaccbf07849b
child 68
ceb7a55676a4
equal deleted inserted replaced
65:9c471840acb9 66:018705d57f09
9 9
10 require "util.jid" 10 require "util.jid"
11 local jid_split = jid.split; 11 local jid_split = jid.split;
12 12
13 function core_process_stanza(origin, stanza) 13 function core_process_stanza(origin, stanza)
14 log("debug", "Received: "..tostring(stanza))
14 local to = stanza.attr.to; 15 local to = stanza.attr.to;
15 16
16 if not to or (hosts[to] and hosts[to].type == "local") then 17 if not to or (hosts[to] and hosts[to].type == "local") then
17 core_handle_stanza(origin, stanza); 18 core_handle_stanza(origin, stanza);
18 elseif origin.type == "c2s" then 19 elseif origin.type == "c2s" then

mercurial