diff options
author | Homer Horwitz | 2008-11-25 19:08:52 +0000 |
---|---|---|
committer | Homer Horwitz | 2008-11-25 19:08:52 +0000 |
commit | 4acddb6797547d75959baf14102ca3f033edd3aa (patch) | |
tree | 7e0bf6098c296b77b50773bdea8a8f19018b60e5 /OpenSim/Framework | |
parent | Revert the rest of r7468 (diff) | |
download | opensim-SC-4acddb6797547d75959baf14102ca3f033edd3aa.zip opensim-SC-4acddb6797547d75959baf14102ca3f033edd3aa.tar.gz opensim-SC-4acddb6797547d75959baf14102ca3f033edd3aa.tar.bz2 opensim-SC-4acddb6797547d75959baf14102ca3f033edd3aa.tar.xz |
Mantis#2692: Thanks Diva, for a patch that fixes a bug in HyperGrid.
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/HGNetworkServersInfo.cs | 14 |
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; |