From 1cadad9ec62c54fe8ebde8a895817bd980fed975 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Sat, 21 Feb 2009 09:39:33 +0000 Subject: * Applied a patch that: Added estate ban table to migration scripts and nhibernate mapping. Refactored property getters and setters for estate ban object to support NHibernate. * Added estate ban table to migration scripts of all supported databases. * Added nhibernate mapping for EstateBans property of EstateSettings * Refactored property accessors for EstateBan object. * Added comments for EstateBan properties. * Ensured that NHibernate tests pass with NUnitGUI. * Ensured that nant test target passes. This fixes mantis #3210. Thank you, tlaukkan! --- OpenSim/Framework/EstateSettings.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Framework/EstateSettings.cs') diff --git a/OpenSim/Framework/EstateSettings.cs b/OpenSim/Framework/EstateSettings.cs index 81f85cd..b84d1d7 100644 --- a/OpenSim/Framework/EstateSettings.cs +++ b/OpenSim/Framework/EstateSettings.cs @@ -333,7 +333,7 @@ namespace OpenSim.Framework public bool IsBanned(UUID avatarID) { foreach (EstateBan ban in l_EstateBans) - if (ban.bannedUUID == avatarID) + if (ban.BannedUserID == avatarID) return true; return false; } @@ -342,7 +342,7 @@ namespace OpenSim.Framework { if (ban == null) return; - if (!IsBanned(ban.bannedUUID)) + if (!IsBanned(ban.BannedUserID)) l_EstateBans.Add(ban); } @@ -354,7 +354,7 @@ namespace OpenSim.Framework public void RemoveBan(UUID avatarID) { foreach (EstateBan ban in new List(l_EstateBans)) - if (ban.bannedUUID == avatarID) + if (ban.BannedUserID == avatarID) l_EstateBans.Remove(ban); } -- cgit v1.1