From a2b1a1787d620f70c10221545414b41ffdfe27da Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 25 Jun 2008 14:30:28 +0000 Subject: Minor formatting cleanup. --- OpenSim/Data/NHibernate/NHibernateUserData.cs | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'OpenSim/Data') diff --git a/OpenSim/Data/NHibernate/NHibernateUserData.cs b/OpenSim/Data/NHibernate/NHibernateUserData.cs index 0fb297f..3b67d6e 100644 --- a/OpenSim/Data/NHibernate/NHibernateUserData.cs +++ b/OpenSim/Data/NHibernate/NHibernateUserData.cs @@ -91,7 +91,9 @@ namespace OpenSim.Data.NHibernate { user = session.Load(typeof(UserProfileData), uuid) as UserProfileData; } - catch (Exception) {} + catch (Exception) + { + } return (user != null); } @@ -161,10 +163,13 @@ namespace OpenSim.Data.NHibernate { UserAgentData old = session.Load(typeof(UserAgentData), agent.ProfileID) as UserAgentData; - if (old == null) { + if (old == null) + { session.Save(agent); session.Transaction.Commit(); - } else { + } + else + { UpdateUserAgent(agent); } } @@ -235,13 +240,13 @@ namespace OpenSim.Data.NHibernate // TODO: actually implement these public override void UpdateUserCurrentRegion(LLUUID avatarid, LLUUID regionuuid, ulong regionhandle) { return; } - public override void StoreWebLoginKey(LLUUID agentID, LLUUID webLoginKey) {return;} - public override void AddNewUserFriend(LLUUID friendlistowner, LLUUID friend, uint perms) {return;} - public override void RemoveUserFriend(LLUUID friendlistowner, LLUUID friend) {return;} - public override void UpdateUserFriendPerms(LLUUID friendlistowner, LLUUID friend, uint perms) {return;} - public override List GetUserFriendList(LLUUID friendlistowner) {return new List();} - public override bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount) {return true;} - public override bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID inventory) {return true;} + public override void StoreWebLoginKey(LLUUID agentID, LLUUID webLoginKey) { return; } + public override void AddNewUserFriend(LLUUID friendlistowner, LLUUID friend, uint perms) { return; } + public override void RemoveUserFriend(LLUUID friendlistowner, LLUUID friend) { return; } + public override void UpdateUserFriendPerms(LLUUID friendlistowner, LLUUID friend, uint perms) { return; } + public override List GetUserFriendList(LLUUID friendlistowner) { return new List(); } + public override bool MoneyTransferRequest(LLUUID from, LLUUID to, uint amount) { return true; } + public override bool InventoryTransferRequest(LLUUID from, LLUUID to, LLUUID inventory) { return true; } /// Appearance /// TODO: stubs for now to get us to a compiling state gently -- cgit v1.1