mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
- moving banned check and public/private check to
Scene.NewUserConnection() - adding reason reporting this enforces estate bans very early on and prevents us from circulating client objects that we'd then have to retract once we realize that the client is not allowed into the region
This commit is contained in:
@@ -545,7 +545,15 @@ namespace OpenSim.Region.CoreModules.InterGrid
|
||||
homeScene.CommsManager.UserProfileCacheService.PreloadUserCache(userProfile);
|
||||
|
||||
// Call 'new user' event handler
|
||||
homeScene.NewUserConnection(agentData);
|
||||
string reason;
|
||||
if (!homeScene.NewUserConnection(agentData, out reason))
|
||||
{
|
||||
responseMap["connect"] = OSD.FromBoolean(false);
|
||||
responseMap["message"] = OSD.FromString(String.Format("Connection refused: {0}", reason));
|
||||
m_log.ErrorFormat("[OGP]: rez_avatar/request failed: {0}", reason);
|
||||
return responseMap;
|
||||
}
|
||||
|
||||
|
||||
//string raCap = string.Empty;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user