diff options
Diffstat (limited to 'OpenSim/ApplicationPlugins')
-rw-r--r-- | OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index db99450..7f7689d 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs | |||
@@ -474,7 +474,9 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
474 | { | 474 | { |
475 | m_log.InfoFormat("master avatar does not exist, creating it"); | 475 | m_log.InfoFormat("master avatar does not exist, creating it"); |
476 | // ...or create new user | 476 | // ...or create new user |
477 | userID = m_app.CreateUser(masterFirst, masterLast, masterPassword, "", region.RegionLocX, region.RegionLocY); | 477 | userID = m_app.CommunicationsManager.UserServiceAdmin.AddUser( |
478 | masterFirst, masterLast, masterPassword, "", region.RegionLocX, region.RegionLocY); | ||
479 | |||
478 | if (userID == UUID.Zero) throw new Exception(String.Format("failed to create new user {0} {1}", | 480 | if (userID == UUID.Zero) throw new Exception(String.Format("failed to create new user {0} {1}", |
479 | masterFirst, masterLast)); | 481 | masterFirst, masterLast)); |
480 | } | 482 | } |
@@ -668,7 +670,9 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
668 | if (null != userProfile) | 670 | if (null != userProfile) |
669 | throw new Exception(String.Format("avatar {0} {1} already exists", firstname, lastname)); | 671 | throw new Exception(String.Format("avatar {0} {1} already exists", firstname, lastname)); |
670 | 672 | ||
671 | UUID userID = m_app.CreateUser(firstname, lastname, passwd, email, regX, regY); | 673 | UUID userID |
674 | = m_app.CommunicationsManager.UserServiceAdmin.AddUser( | ||
675 | firstname, lastname, passwd, email, regX, regY); | ||
672 | 676 | ||
673 | if (userID == UUID.Zero) throw new Exception(String.Format("failed to create new user {0} {1}", | 677 | if (userID == UUID.Zero) throw new Exception(String.Format("failed to create new user {0} {1}", |
674 | firstname, lastname)); | 678 | firstname, lastname)); |
@@ -764,7 +768,9 @@ namespace OpenSim.ApplicationPlugins.RemoteController | |||
764 | if (null != userProfile) | 768 | if (null != userProfile) |
765 | throw new Exception(String.Format("avatar {0} {1} already exists", firstname, lastname)); | 769 | throw new Exception(String.Format("avatar {0} {1} already exists", firstname, lastname)); |
766 | 770 | ||
767 | UUID userID = m_app.CreateUser(firstname, lastname, passwd, email, regX, regY); | 771 | UUID userID |
772 | = m_app.CommunicationsManager.UserServiceAdmin.AddUser( | ||
773 | firstname, lastname, passwd, email, regX, regY); | ||
768 | 774 | ||
769 | if (userID == UUID.Zero) throw new Exception(String.Format("failed to create new user {0} {1}", | 775 | if (userID == UUID.Zero) throw new Exception(String.Format("failed to create new user {0} {1}", |
770 | firstname, lastname)); | 776 | firstname, lastname)); |