mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
Mantis#2692: Thanks Diva, for a patch that fixes a bug in HyperGrid.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user