mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
Restrict IPresenceData.VerifyAgent
Restrict IPresenceData.VerifyAgent to only return bool result
This commit is contained in:
@@ -222,17 +222,12 @@ namespace OpenSim.Data.Null
|
||||
return true;
|
||||
}
|
||||
|
||||
public PresenceData VerifyAgent(UUID secureSessionID)
|
||||
public bool VerifyAgent(UUID agentId, UUID secureSessionID)
|
||||
{
|
||||
if (Instance != this)
|
||||
return Instance.VerifyAgent(secureSessionID);
|
||||
return Instance.VerifyAgent(agentId, secureSessionID);
|
||||
|
||||
if (m_presenceData.ContainsKey(secureSessionID))
|
||||
{
|
||||
return m_presenceData[secureSessionID];
|
||||
}
|
||||
|
||||
return null;
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user