Diff

core/stanza_router.lua @ 127:93f3c6b94c75 s2s

Initial s2s stuff
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Oct 2008 18:09:39 +0100
parent 122:21f8d2175393
child 138:cb0dd442ca63
child 144:ed78c1a0401e
line wrap: on
line diff
--- a/core/stanza_router.lua	Thu Oct 23 18:05:06 2008 +0100
+++ b/core/stanza_router.lua	Thu Oct 23 18:09:39 2008 +0100
@@ -93,6 +93,7 @@
 	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 @@
 		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