diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-10-23 18:09:39 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-10-23 18:09:39 +0100 |
commit | ce86d8badcc0f93ea14f71abad9161cee80ad823 (patch) | |
tree | 4749ac1995c41fb648b608f446924e29a0bc24b7 /core | |
parent | dba8f998cf39a07fd93fb985a17b32a274fb23f3 (diff) | |
download | prosody-ce86d8badcc0f93ea14f71abad9161cee80ad823.tar.gz prosody-ce86d8badcc0f93ea14f71abad9161cee80ad823.zip |
Initial s2s stuff
Diffstat (limited to 'core')
-rw-r--r-- | core/stanza_router.lua | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 2203f351..3814ffdf 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -93,6 +93,7 @@ function core_handle_stanza(origin, stanza) end end +-- TODO: Does this function belong here? function is_authorized_to_see_presence(origin, username, host) local roster = datamanager.load(username, host, "roster") or {}; local item = roster[origin.username.."@"..origin.host]; @@ -186,11 +187,7 @@ function core_route_stanza(origin, stanza) end else -- Remote host - if host_session then - -- Send to session - else - -- Need to establish the connection - end + send_s2s(origin.host, host, stanza); end stanza.attr.to = to; -- reset end |