From 681433c4b75b30ddd5299b23a56fb706f1edb7ae Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Sun, 20 Jul 2008 22:16:50 +0000 Subject: Mantis#1796. Thank you kindly, StrawberryFride for a patch that: Agent table code (INSERT / UPDATE, etc) now added to MSSQL provider. --- OpenSim/Grid/UserServer/UserManager.cs | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'OpenSim/Grid') diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs index d4fb187..b48f20e 100644 --- a/OpenSim/Grid/UserServer/UserManager.cs +++ b/OpenSim/Grid/UserServer/UserManager.cs @@ -190,28 +190,15 @@ namespace OpenSim.Grid.UserServer { // ulong cregionhandle = 0; LLUUID regionUUID = LLUUID.Zero; - LLUUID AvatarID = LLUUID.Zero; + LLUUID avatarUUID = LLUUID.Zero; - Helpers.TryParse((string)requestData["avatar_id"], out AvatarID); + Helpers.TryParse((string)requestData["avatar_id"], out avatarUUID); Helpers.TryParse((string)requestData["region_uuid"], out regionUUID); - // try - // { - // cregionhandle = (ulong)Convert.ToInt64((string)requestData["region_handle"]); - // } - // catch (ArgumentException) - // { - // } - // catch (OverflowException) - // { - // } - // catch (FormatException) - // { - // } - - if (AvatarID != LLUUID.Zero) + + if (avatarUUID != LLUUID.Zero) { - UserProfileData userProfile = GetUserProfile(new LLUUID((string)requestData["avatar_id"])); - userProfile.CurrentAgent.Region = new LLUUID((string)requestData["region_uuid"]); + UserProfileData userProfile = GetUserProfile(avatarUUID); + userProfile.CurrentAgent.Region = regionUUID; userProfile.CurrentAgent.Handle = (ulong)Convert.ToInt64((string)requestData["region_handle"]); //userProfile.CurrentAgent. CommitAgent(ref userProfile); -- cgit v1.1