From 4acddb6797547d75959baf14102ca3f033edd3aa Mon Sep 17 00:00:00 2001 From: Homer Horwitz Date: Tue, 25 Nov 2008 19:08:52 +0000 Subject: Mantis#2692: Thanks Diva, for a patch that fixes a bug in HyperGrid. --- OpenSim/Framework/HGNetworkServersInfo.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'OpenSim/Framework/HGNetworkServersInfo.cs') diff --git a/OpenSim/Framework/HGNetworkServersInfo.cs b/OpenSim/Framework/HGNetworkServersInfo.cs index b9bc07a..85fbe35 100644 --- a/OpenSim/Framework/HGNetworkServersInfo.cs +++ b/OpenSim/Framework/HGNetworkServersInfo.cs @@ -66,6 +66,20 @@ namespace OpenSim.Framework return ret; } + public bool IsLocalUser(UserProfileData userData) + { + if (userData != null) + { + if (userData is ForeignUserProfileData) + return IsLocalUser(((ForeignUserProfileData)userData).UserServerURI); + else + return true; + } + else + // Something fishy; ignore it + return true; + } + public static string ServerURI(string uri) { IPAddress ipaddr1 = null; -- cgit v1.1