Fixed silly mistakes (#95)

This commit is contained in:
StolenRuby 2024-09-23 17:34:17 +01:00 committed by GitHub
parent 48199f0596
commit fea07bd0fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 12 deletions

View file

@ -42,14 +42,14 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Experience
IConfig moduleConfig = source.Configs["Modules"];
if (moduleConfig != null)
{
string name = moduleConfig.GetString("InventoryServices", "");
string name = moduleConfig.GetString("ExperienceServices", "");
if (name == Name)
{
m_remoteConnector = new ExperienceServicesConnector(source);
m_Enabled = true;
m_log.Info("[XINVENTORY CONNECTOR]: Remote ExperienceService enabled");
m_log.Info("[EXPERIENCE CONNECTOR]: Remote ExperienceService enabled");
}
}
}

View file

@ -63,21 +63,18 @@ namespace OpenSim.Services.ExperienceService
lastName = MainConsole.Instance.Prompt("Experience owner last name", "Resident");
else lastName = cmdparams[3];
UUID suggestedKey = UUID.Random();
if (cmdparams.Length < 5)
experienceKey = MainConsole.Instance.Prompt("Experience Key (leave blank for random)", "");
experienceKey = MainConsole.Instance.Prompt("Experience Key", suggestedKey.ToString());
else experienceKey = cmdparams[4];
UUID newExperienceKey;
if (experienceKey == "")
newExperienceKey = UUID.Random();
else
if(!UUID.TryParse(experienceKey, out newExperienceKey))
{
if(!UUID.TryParse(experienceKey, out newExperienceKey))
{
MainConsole.Instance.Output("Invalid UUID");
return;
}
MainConsole.Instance.Output("Invalid UUID");
return;
}
UserAccount account = m_UserService.GetUserAccount(UUID.Zero, firstName, lastName);

View file

@ -26,6 +26,7 @@
MapImageService = "MapImageServiceModule"
SearchModule = "BasicSearchModule"
MuteListService = "RemoteMuteListServicesConnector"
ExperienceServices = "RemoteExperienceServicesConnector"
LandServiceInConnector = true
NeighbourServiceInConnector = true

View file

@ -236,7 +236,7 @@
MuteListServerURI = "${Const|PrivURL}:${Const|PrivatePort}"
[ExperienceService]
LocalServiceModule = "OpenSim.Services.Connectors.dll:RemoteExperienceServiceConnector"
LocalServiceModule = "OpenSim.Services.Connectors.dll:RemoteExperienceServicesConnector"
;
; Change this to your grid-wide experience server

View file

@ -32,6 +32,7 @@
UserManagementModule = "HGUserManagementModule"
SearchModule = "BasicSearchModule"
MuteListService = "RemoteMuteListServicesConnector"
ExperienceServices = "RemoteExperienceServicesConnector"
LandServiceInConnector = true
NeighbourServiceInConnector = true