diff options
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r-- | core/stanza_router.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 489bb96d..10335fa3 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -41,7 +41,21 @@ end function core_route_stanza(origin, stanza) -- Hooks + --- ...later + -- Deliver + local node, host, resource = jid_split(stanza.attr.to); + local host_session = hosts[host] + if host_session and host_session.type == "local" then + -- Local host + else + -- Remote host + if host_session then + -- Send to session + else + -- Need to establish the connection + end + end end function handle_stanza_nodest(stanza) |