mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Add a "useCached" parameter to GetUserAccount. Add a function to Scene to get the user flags. It has to be here due to access restrictions :/
This commit is contained in:
@@ -88,12 +88,7 @@ namespace OpenSim.Region.CoreModules.Agent.Capabilities
|
||||
|
||||
public void AddCapsHandler(UUID agentId)
|
||||
{
|
||||
int flags = 0;
|
||||
ScenePresence sp;
|
||||
if (m_scene.TryGetScenePresence(agentId, out sp))
|
||||
{
|
||||
flags = sp.UserFlags;
|
||||
}
|
||||
int flags = m_scene.GetUserFlags(agentId);
|
||||
if (m_scene.RegionInfo.EstateSettings.IsBanned(agentId, flags))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user