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 |