Prevent error spew when script send IM to HG users before HG is up
parent
5c3cb5297c
commit
59f7cf79c9
|
@ -957,9 +957,14 @@ namespace OpenSim.Region.CoreModules.Framework.UserManagement
|
||||||
|
|
||||||
public virtual bool IsLocalGridUser(UUID uuid)
|
public virtual bool IsLocalGridUser(UUID uuid)
|
||||||
{
|
{
|
||||||
|
lock (m_Scenes)
|
||||||
|
{
|
||||||
|
if (m_Scenes.Count == 0)
|
||||||
|
return true;
|
||||||
UserAccount account = m_Scenes[0].UserAccountService.GetUserAccount(m_Scenes[0].RegionInfo.ScopeID, uuid);
|
UserAccount account = m_Scenes[0].UserAccountService.GetUserAccount(m_Scenes[0].RegionInfo.ScopeID, uuid);
|
||||||
if (account == null || (account != null && !account.LocalToGrid))
|
if (account == null || (account != null && !account.LocalToGrid))
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue