mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
Massive tab and trailing space cleanup
This commit is contained in:
@@ -77,8 +77,8 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Profile
|
||||
{
|
||||
get; private set;
|
||||
}
|
||||
|
||||
public Type ReplaceableInterface
|
||||
|
||||
public Type ReplaceableInterface
|
||||
{
|
||||
get { return null; }
|
||||
}
|
||||
@@ -87,7 +87,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Profile
|
||||
{
|
||||
m_log.Debug("[LOCAL USERPROFILES SERVICE CONNECTOR]: LocalUserProfileServicesConnector no params");
|
||||
}
|
||||
|
||||
|
||||
public LocalUserProfilesServicesConnector(IConfigSource source)
|
||||
{
|
||||
m_log.Debug("[LOCAL USERPROFILES SERVICE CONNECTOR]: LocalUserProfileServicesConnector instantiated directly.");
|
||||
@@ -97,7 +97,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Profile
|
||||
public void InitialiseService(IConfigSource source)
|
||||
{
|
||||
ConfigName = "UserProfilesService";
|
||||
|
||||
|
||||
// Instantiate the request handler
|
||||
IHttpServer Server = MainServer.Instance;
|
||||
|
||||
@@ -107,35 +107,35 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Profile
|
||||
m_log.Error("[LOCAL USERPROFILES SERVICE CONNECTOR]: UserProfilesService missing from OpenSim.ini");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if(!config.GetBoolean("Enabled",false))
|
||||
{
|
||||
Enabled = false;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Enabled = true;
|
||||
|
||||
|
||||
string serviceDll = config.GetString("LocalServiceModule",
|
||||
String.Empty);
|
||||
|
||||
|
||||
if (serviceDll == String.Empty)
|
||||
{
|
||||
m_log.Error("[LOCAL USERPROFILES SERVICE CONNECTOR]: No LocalServiceModule named in section UserProfilesService");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Object[] args = new Object[] { source, ConfigName };
|
||||
ServiceModule =
|
||||
ServerUtils.LoadPlugin<IUserProfilesService>(serviceDll,
|
||||
args);
|
||||
|
||||
|
||||
if (ServiceModule == null)
|
||||
{
|
||||
m_log.Error("[LOCAL USERPROFILES SERVICE CONNECTOR]: Can't load user profiles service");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Enabled = true;
|
||||
|
||||
JsonRpcProfileHandlers handler = new JsonRpcProfileHandlers(ServiceModule);
|
||||
@@ -196,7 +196,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Profile
|
||||
{
|
||||
if (!Enabled)
|
||||
return;
|
||||
|
||||
|
||||
lock (regions)
|
||||
{
|
||||
if (regions.ContainsKey(scene.RegionInfo.RegionID))
|
||||
@@ -209,7 +209,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Profile
|
||||
void IRegionModuleBase.RemoveRegion(Scene scene)
|
||||
{
|
||||
if (!Enabled)
|
||||
return;
|
||||
return;
|
||||
|
||||
lock (regions)
|
||||
{
|
||||
@@ -221,7 +221,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Profile
|
||||
void IRegionModuleBase.RegionLoaded(Scene scene)
|
||||
{
|
||||
if (!Enabled)
|
||||
return;
|
||||
return;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user