aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/HGNetworkServersInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/HGNetworkServersInfo.cs')
-rw-r--r--OpenSim/Framework/HGNetworkServersInfo.cs14
1 files changed, 14 insertions, 0 deletions
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
66 return ret; 66 return ret;
67 } 67 }
68 68
69 public bool IsLocalUser(UserProfileData userData)
70 {
71 if (userData != null)
72 {
73 if (userData is ForeignUserProfileData)
74 return IsLocalUser(((ForeignUserProfileData)userData).UserServerURI);
75 else
76 return true;
77 }
78 else
79 // Something fishy; ignore it
80 return true;
81 }
82
69 public static string ServerURI(string uri) 83 public static string ServerURI(string uri)
70 { 84 {
71 IPAddress ipaddr1 = null; 85 IPAddress ipaddr1 = null;