From febd54499b5decd9cb58191ead5695b6fab247c8 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 26 Jun 2009 11:32:36 +0000 Subject: Enable the RemoteAdmin module to save regions as ini files rather than XML --- .../RemoteController/RemoteAdminPlugin.cs | 39 ++++++++++++---------- 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'OpenSim/ApplicationPlugins') diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs index f768516..bcab2d1 100644 --- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs +++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs @@ -556,25 +556,28 @@ namespace OpenSim.ApplicationPlugins.RemoteController } else { - // no client supplied UUID: look it up... - CachedUserInfo userInfo - = m_app.CommunicationsManager.UserProfileCacheService.GetUserDetails( - masterFirst, masterLast); - - if (null == userInfo) - { - m_log.InfoFormat("master avatar does not exist, creating it"); - // ...or create new user - userID = m_app.CommunicationsManager.UserAdminService.AddUser( - masterFirst, masterLast, masterPassword, "", region.RegionLocX, region.RegionLocY); - - if (userID == UUID.Zero) - throw new Exception(String.Format("failed to create new user {0} {1}", - masterFirst, masterLast)); - } - else + if (masterFirst != String.Empty && masterLast != String.Empty) // User requests a master avatar { - userID = userInfo.UserProfile.ID; + // no client supplied UUID: look it up... + CachedUserInfo userInfo + = m_app.CommunicationsManager.UserProfileCacheService.GetUserDetails( + masterFirst, masterLast); + + if (null == userInfo) + { + m_log.InfoFormat("master avatar does not exist, creating it"); + // ...or create new user + userID = m_app.CommunicationsManager.UserAdminService.AddUser( + masterFirst, masterLast, masterPassword, "", region.RegionLocX, region.RegionLocY); + + if (userID == UUID.Zero) + throw new Exception(String.Format("failed to create new user {0} {1}", + masterFirst, masterLast)); + } + else + { + userID = userInfo.UserProfile.ID; + } } } -- cgit v1.1