diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/EstateBan.cs | 8 |
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 | ||