try improve profiles online indication a bit more

This commit is contained in:
UbitUmarov
2023-02-01 21:09:20 +00:00
parent e2d71afc10
commit a7b8ce9cfd
3 changed files with 21 additions and 4 deletions

View File

@@ -1842,7 +1842,7 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles
if(client.SceneAgent is ScenePresence sp && sp.IsViewerUIGod)
{
Services.Interfaces.PresenceInfo[] pi = Scene.PresenceService?.GetAgents(new string[] { agent.ToString() });
return pi != null && pi.Length > 0;
return pi is not null && pi.Length > 0;
}
return false;
}