aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/UserAccountService/UserAccountService.cs
diff options
context:
space:
mode:
authorUbitUmarov2016-08-21 03:06:31 +0100
committerUbitUmarov2016-08-21 03:06:31 +0100
commitb566be4f8233edc59023b807eb9b961103405810 (patch)
treec641197150406dcc3cd95dfdc3dfa9573d60e6e6 /OpenSim/Services/UserAccountService/UserAccountService.cs
parent limit the scan of terrain EnforceEstateLimits to the area changed. (diff)
downloadopensim-SC_OLD-b566be4f8233edc59023b807eb9b961103405810.zip
opensim-SC_OLD-b566be4f8233edc59023b807eb9b961103405810.tar.gz
opensim-SC_OLD-b566be4f8233edc59023b807eb9b961103405810.tar.bz2
opensim-SC_OLD-b566be4f8233edc59023b807eb9b961103405810.tar.xz
partially apply patch in mantis 8002
Diffstat (limited to '')
-rw-r--r--OpenSim/Services/UserAccountService/UserAccountService.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs
index bb50536..706d475 100644
--- a/OpenSim/Services/UserAccountService/UserAccountService.cs
+++ b/OpenSim/Services/UserAccountService/UserAccountService.cs
@@ -92,7 +92,7 @@ namespace OpenSim.Services.UserAccountService
92 m_RootInstance = this; 92 m_RootInstance = this;
93 MainConsole.Instance.Commands.AddCommand("Users", false, 93 MainConsole.Instance.Commands.AddCommand("Users", false,
94 "create user", 94 "create user",
95 "create user [<first> [<last> [<pass> [<email> [<user id>]]]]]", 95 "create user [<first> [<last> [<pass> [<email> [<user id> [<model>]]]]]]",
96 "Create a new user", HandleCreateUser); 96 "Create a new user", HandleCreateUser);
97 97
98 MainConsole.Instance.Commands.AddCommand("Users", false, 98 MainConsole.Instance.Commands.AddCommand("Users", false,
@@ -353,7 +353,7 @@ namespace OpenSim.Services.UserAccountService
353 /// <summary> 353 /// <summary>
354 /// Handle the create user command from the console. 354 /// Handle the create user command from the console.
355 /// </summary> 355 /// </summary>
356 /// <param name="cmdparams">string array with parameters: firstname, lastname, password, locationX, locationY, email</param> 356 /// <param name="cmdparams">string array with parameters: firstname, lastname, password, locationX, locationY, email, userID, model name </param>
357 protected void HandleCreateUser(string module, string[] cmdparams) 357 protected void HandleCreateUser(string module, string[] cmdparams)
358 { 358 {
359 string firstName; 359 string firstName;
@@ -361,6 +361,7 @@ namespace OpenSim.Services.UserAccountService
361 string password; 361 string password;
362 string email; 362 string email;
363 string rawPrincipalId; 363 string rawPrincipalId;
364 string model;
364 365
365 List<char> excluded = new List<char>(new char[]{' '}); 366 List<char> excluded = new List<char>(new char[]{' '});
366 367
@@ -385,11 +386,16 @@ namespace OpenSim.Services.UserAccountService
385 else 386 else
386 rawPrincipalId = cmdparams[6]; 387 rawPrincipalId = cmdparams[6];
387 388
389 if (cmdparams.Length < 8)
390 model = MainConsole.Instance.CmdPrompt("Model name","");
391 else
392 model = cmdparams[7];
393
388 UUID principalId = UUID.Zero; 394 UUID principalId = UUID.Zero;
389 if (!UUID.TryParse(rawPrincipalId, out principalId)) 395 if (!UUID.TryParse(rawPrincipalId, out principalId))
390 throw new Exception(string.Format("ID {0} is not a valid UUID", rawPrincipalId)); 396 throw new Exception(string.Format("ID {0} is not a valid UUID", rawPrincipalId));
391 397
392 CreateUser(UUID.Zero, principalId, firstName, lastName, password, email); 398 CreateUser(UUID.Zero, principalId, firstName, lastName, password, email, model);
393 } 399 }
394 400
395 protected void HandleShowAccount(string module, string[] cmdparams) 401 protected void HandleShowAccount(string module, string[] cmdparams)