diff options
author | Diva Canto | 2010-03-26 13:14:32 -0700 |
---|---|---|
committer | Diva Canto | 2010-03-26 13:14:32 -0700 |
commit | c6bbb48f2b83bbb6baa1f1fd38e78f9030d5773a (patch) | |
tree | c15d71e4d53e9a7d819c9f8494a7fc3904d4e73f /OpenSim/Region/Framework/Scenes | |
parent | Hippos with bin/Newtonsoft.Json.XML (diff) | |
parent | Merge branch 'master' of ssh://justincc@opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC_OLD-c6bbb48f2b83bbb6baa1f1fd38e78f9030d5773a.zip opensim-SC_OLD-c6bbb48f2b83bbb6baa1f1fd38e78f9030d5773a.tar.gz opensim-SC_OLD-c6bbb48f2b83bbb6baa1f1fd38e78f9030d5773a.tar.bz2 opensim-SC_OLD-c6bbb48f2b83bbb6baa1f1fd38e78f9030d5773a.tar.xz |
Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 7fed1ea..8a583c1 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -1266,8 +1266,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1266 | 1266 | ||
1267 | UserAccount account = UserAccountService.GetUserAccount(m_regInfo.ScopeID, first, last); | 1267 | UserAccount account = UserAccountService.GetUserAccount(m_regInfo.ScopeID, first, last); |
1268 | 1268 | ||
1269 | if (account != null) | 1269 | if (account == null) |
1270 | { | 1270 | { |
1271 | // Create a new account | ||
1271 | account = new UserAccount(m_regInfo.ScopeID, first, last, String.Empty); | 1272 | account = new UserAccount(m_regInfo.ScopeID, first, last, String.Empty); |
1272 | if (account.ServiceURLs == null || (account.ServiceURLs != null && account.ServiceURLs.Count == 0)) | 1273 | if (account.ServiceURLs == null || (account.ServiceURLs != null && account.ServiceURLs.Count == 0)) |
1273 | { | 1274 | { |
@@ -1325,7 +1326,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
1325 | } | 1326 | } |
1326 | else | 1327 | else |
1327 | { | 1328 | { |
1328 | MainConsole.Instance.Output("User account not found. Please enter the name of an existing user"); | 1329 | m_regInfo.EstateSettings.EstateOwner = account.PrincipalID; |
1330 | m_regInfo.EstateSettings.Save(); | ||
1329 | } | 1331 | } |
1330 | } | 1332 | } |
1331 | } | 1333 | } |