aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorUbitUmarov2019-08-18 00:33:23 +0100
committerUbitUmarov2019-08-18 00:33:23 +0100
commit6b868f8682e9592d47766294836c1178c7bd45e2 (patch)
tree1b5ad1d49f854f69a6b1f4f3543561d4b6e3b128
parentmissing file (diff)
downloadopensim-SC-6b868f8682e9592d47766294836c1178c7bd45e2.zip
opensim-SC-6b868f8682e9592d47766294836c1178c7bd45e2.tar.gz
opensim-SC-6b868f8682e9592d47766294836c1178c7bd45e2.tar.bz2
opensim-SC-6b868f8682e9592d47766294836c1178c7bd45e2.tar.xz
i do not not store banTime as DateTime, fix the EstateBan decoder
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/EstateBan.cs8
1 files 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
68 } 68 }
69 69
70 public UUID BanningUserID { get; set; } 70 public UUID BanningUserID { get; set; }
71 public int BanTime; 71 public int BanTime { get; set; }
72 72
73 private string m_bannedHostAddress = string.Empty; 73 private string m_bannedHostAddress = string.Empty;
74 /// <summary> 74 /// <summary>
75 /// IP address or domain name of the banned client. 75 /// IP address or domain name of the banned client.
@@ -140,14 +140,14 @@ namespace OpenSim.Framework
140 object value = p.GetValue(this, null); 140 object value = p.GetValue(this, null);
141 if (value is String) 141 if (value is String)
142 p.SetValue(this, map[p.Name], null); 142 p.SetValue(this, map[p.Name], null);
143 else if (value is Int32)
144 p.SetValue(this, Int32.Parse((string)map[p.Name]), null);
143 else if (value is UInt32) 145 else if (value is UInt32)
144 p.SetValue(this, UInt32.Parse((string)map[p.Name]), null); 146 p.SetValue(this, UInt32.Parse((string)map[p.Name]), null);
145 else if (value is Boolean) 147 else if (value is Boolean)
146 p.SetValue(this, Boolean.Parse((string)map[p.Name]), null); 148 p.SetValue(this, Boolean.Parse((string)map[p.Name]), null);
147 else if (value is UUID) 149 else if (value is UUID)
148 p.SetValue(this, UUID.Parse((string)map[p.Name]), null); 150 p.SetValue(this, UUID.Parse((string)map[p.Name]), null);
149 else if (value is DateTime)
150 p.SetValue(this, DateTime.Parse((string)map[p.Name]), null);
151 } 151 }
152 } 152 }
153 153