aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/CommunicationsManager.cs28
1 files changed, 16 insertions, 12 deletions
diff --git a/OpenSim/Framework/Communications/CommunicationsManager.cs b/OpenSim/Framework/Communications/CommunicationsManager.cs
index ccd6491..a45e236 100644
--- a/OpenSim/Framework/Communications/CommunicationsManager.cs
+++ b/OpenSim/Framework/Communications/CommunicationsManager.cs
@@ -183,21 +183,25 @@ namespace OpenSim.Framework.Communications
183 uint regY = 1000; 183 uint regY = 1000;
184 184
185 if (cmmdParams.Length < 2) 185 if (cmmdParams.Length < 2)
186 {
187 firstName = MainConsole.Instance.CmdPrompt("First name", "Default"); 186 firstName = MainConsole.Instance.CmdPrompt("First name", "Default");
187 else firstName = cmmdParams[1];
188
189 if ( cmmdParams.Length < 3 )
188 lastName = MainConsole.Instance.CmdPrompt("Last name", "User"); 190 lastName = MainConsole.Instance.CmdPrompt("Last name", "User");
191 else lastName = cmmdParams[2];
192
193 if ( cmmdParams.Length < 4 )
189 password = MainConsole.Instance.PasswdPrompt("Password"); 194 password = MainConsole.Instance.PasswdPrompt("Password");
190 regX = Convert.ToUInt32(MainConsole.Instance.CmdPrompt("Start Region X", "1000")); 195 else password = cmmdParams[3];
191 regY = Convert.ToUInt32(MainConsole.Instance.CmdPrompt("Start Region Y", "1000")); 196
192 } 197 if ( cmmdParams.Length < 5 )
193 else 198 regX = Convert.ToUInt32(MainConsole.Instance.CmdPrompt("Start Region X", regX.ToString()));
194 { 199 else regX = Convert.ToUInt32(cmmdParams[4]);
195 firstName = cmmdParams[1]; 200
196 lastName = cmmdParams[2]; 201 if ( cmmdParams.Length < 6 )
197 password = cmmdParams[3]; 202 regY = Convert.ToUInt32(MainConsole.Instance.CmdPrompt("Start Region Y", regY.ToString()));
198 regX = Convert.ToUInt32(cmmdParams[4]); 203 else regY = Convert.ToUInt32(cmmdParams[5]);
199 regY = Convert.ToUInt32(cmmdParams[5]); 204
200 }
201 205
202 if (null == m_userService.GetUserProfile(firstName, lastName)) 206 if (null == m_userService.GetUserProfile(firstName, lastName))
203 { 207 {