Fixed a backwards null check that was preventing estate owner from being set and a misleading error message (in grid mode it tries to get a user, not create one)

slimupdates
John Hurliman 2010-03-26 11:08:14 -07:00
parent 87fe96ae2c
commit dd1c1b3bcd
1 changed files with 2 additions and 2 deletions

View File

@ -1266,7 +1266,7 @@ namespace OpenSim.Region.Framework.Scenes
UserAccount account = UserAccountService.GetUserAccount(m_regInfo.ScopeID, first, last);
if (account == null)
if (account != null)
{
account = new UserAccount(m_regInfo.ScopeID, first, last, String.Empty);
if (account.ServiceURLs == null || (account.ServiceURLs != null && account.ServiceURLs.Count == 0))
@ -1325,7 +1325,7 @@ namespace OpenSim.Region.Framework.Scenes
}
else
{
MainConsole.Instance.Output("You appear to be connected to a grid and can't create users from here. Please enter the name of an existing user");
MainConsole.Instance.Output("User account not found. Please enter the name of an existing user");
}
}
}