mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
Update svn properties, formatting cleanup.
This commit is contained in:
@@ -280,22 +280,22 @@ namespace OpenSim.Data
|
||||
set { originUUID = value; }
|
||||
}
|
||||
|
||||
public RegionInfo ToRegionInfo( )
|
||||
public RegionInfo ToRegionInfo()
|
||||
{
|
||||
return RegionInfo.Create(UUID, regionName, regionLocX, regionLocY, serverIP, httpPort, serverPort, remotingPort, serverURI );
|
||||
return RegionInfo.Create(UUID, regionName, regionLocX, regionLocY, serverIP, httpPort, serverPort, remotingPort, serverURI);
|
||||
}
|
||||
|
||||
public static RegionProfileData FromRegionInfo( RegionInfo regionInfo )
|
||||
public static RegionProfileData FromRegionInfo(RegionInfo regionInfo)
|
||||
{
|
||||
if( regionInfo == null )
|
||||
if (regionInfo == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return Create(regionInfo.RegionID, regionInfo.RegionName, regionInfo.RegionLocX,
|
||||
regionInfo.RegionLocY, regionInfo.ExternalHostName,
|
||||
(uint) regionInfo.ExternalEndPoint.Port, regionInfo.HttpPort, regionInfo.RemotingPort,
|
||||
regionInfo.ServerURI);
|
||||
regionInfo.RegionLocY, regionInfo.ExternalHostName,
|
||||
(uint) regionInfo.ExternalEndPoint.Port, regionInfo.HttpPort, regionInfo.RemotingPort,
|
||||
regionInfo.ServerURI);
|
||||
}
|
||||
|
||||
public static RegionProfileData Create(UUID regionID, string regionName, uint locX, uint locY, string externalHostName, uint regionPort, uint httpPort, uint remotingPort, string serverUri)
|
||||
|
||||
@@ -318,7 +318,7 @@ namespace OpenSim.Framework.Communications
|
||||
return GoodLogin;
|
||||
}
|
||||
|
||||
protected virtual bool TryAuthenticateLLSDLogin( string firstname, string lastname, string passwd, out UserProfileData userProfile)
|
||||
protected virtual bool TryAuthenticateLLSDLogin(string firstname, string lastname, string passwd, out UserProfileData userProfile)
|
||||
{
|
||||
bool GoodLogin = false;
|
||||
userProfile = GetTheUser(firstname, lastname);
|
||||
@@ -369,7 +369,7 @@ namespace OpenSim.Framework.Communications
|
||||
}
|
||||
m_log.Info("[LOGIN]: LLSD Login Requested for: '" + firstname+"' '"+lastname+"' / "+passwd);
|
||||
|
||||
if (!TryAuthenticateLLSDLogin( firstname, lastname, passwd, out userProfile))
|
||||
if (!TryAuthenticateLLSDLogin(firstname, lastname, passwd, out userProfile))
|
||||
{
|
||||
return logResponse.CreateLoginFailedResponseLLSD();
|
||||
}
|
||||
@@ -985,7 +985,7 @@ namespace OpenSim.Framework.Communications
|
||||
m_log.Error("[LOGIN]: Sending user to default region " + defaultHandle + " instead");
|
||||
regionInfo = GetRegionInfo(defaultHandle);
|
||||
|
||||
if( regionInfo == null )
|
||||
if (regionInfo == null)
|
||||
{
|
||||
m_log.ErrorFormat("[LOGIN]: No default region available. Aborting.");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user