From cb5a7246a26afd03f405c316520a72c0268fbdf2 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 21 Jan 2018 16:40:58 +0000 Subject: cosmetics (or not) --- .../UserAccountService/UserAccountService.cs | 39 +++++++++++----------- 1 file changed, 19 insertions(+), 20 deletions(-) (limited to 'OpenSim/Services/UserAccountService') diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs index 48929ee..5561287 100644 --- a/OpenSim/Services/UserAccountService/UserAccountService.cs +++ b/OpenSim/Services/UserAccountService/UserAccountService.cs @@ -86,30 +86,29 @@ namespace OpenSim.Services.UserAccountService m_CreateDefaultAvatarEntries = userConfig.GetBoolean("CreateDefaultAvatarEntries", false); - // create a system grid god account - UserAccount ggod = GetUserAccount(UUID.Zero, UUID_GRID_GOD); - if(ggod == null) - { - UserAccountData d = new UserAccountData(); - - d.FirstName = "GRID"; - d.LastName = "SERVICES"; - d.PrincipalID = UUID_GRID_GOD; - d.ScopeID = UUID.Zero; - d.Data = new Dictionary(); - d.Data["Email"] = string.Empty; - d.Data["Created"] = Util.UnixTimeSinceEpoch().ToString(); - d.Data["UserLevel"] = "240"; - d.Data["UserFlags"] = "0"; - d.Data["ServiceURLs"] = string.Empty; - - m_Database.Store(d); - } - if (m_RootInstance == null) { m_RootInstance = this; + // create a system grid god account + UserAccount ggod = GetUserAccount(UUID.Zero, UUID_GRID_GOD); + if(ggod == null) + { + UserAccountData d = new UserAccountData(); + d.FirstName = "GRID"; + d.LastName = "SERVICES"; + d.PrincipalID = UUID_GRID_GOD; + d.ScopeID = UUID.Zero; + d.Data = new Dictionary(); + d.Data["Email"] = string.Empty; + d.Data["Created"] = Util.UnixTimeSinceEpoch().ToString(); + d.Data["UserLevel"] = "240"; + d.Data["UserFlags"] = "0"; + d.Data["ServiceURLs"] = string.Empty; + + m_Database.Store(d); + } + // In case there are several instances of this class in the same process, // the console commands are only registered for the root instance if (MainConsole.Instance != null) -- cgit v1.1