From 6b868f8682e9592d47766294836c1178c7bd45e2 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 18 Aug 2019 00:33:23 +0100 Subject: i do not not store banTime as DateTime, fix the EstateBan decoder --- OpenSim/Framework/EstateBan.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenSim/Framework/EstateBan.cs b/OpenSim/Framework/EstateBan.cs index 81a56d7..beb7bc9 100644 --- a/OpenSim/Framework/EstateBan.cs +++ b/OpenSim/Framework/EstateBan.cs @@ -68,8 +68,8 @@ namespace OpenSim.Framework } public UUID BanningUserID { get; set; } - public int BanTime; - + public int BanTime { get; set; } + private string m_bannedHostAddress = string.Empty; /// /// IP address or domain name of the banned client. @@ -140,14 +140,14 @@ namespace OpenSim.Framework object value = p.GetValue(this, null); if (value is String) p.SetValue(this, map[p.Name], null); + else if (value is Int32) + p.SetValue(this, Int32.Parse((string)map[p.Name]), null); else if (value is UInt32) p.SetValue(this, UInt32.Parse((string)map[p.Name]), null); else if (value is Boolean) p.SetValue(this, Boolean.Parse((string)map[p.Name]), null); else if (value is UUID) p.SetValue(this, UUID.Parse((string)map[p.Name]), null); - else if (value is DateTime) - p.SetValue(this, DateTime.Parse((string)map[p.Name]), null); } } -- cgit v1.1