i do not not store banTime as DateTime, fix the EstateBan decoder
parent
115d69e633
commit
6b868f8682
|
@ -68,7 +68,7 @@ namespace OpenSim.Framework
|
||||||
}
|
}
|
||||||
|
|
||||||
public UUID BanningUserID { get; set; }
|
public UUID BanningUserID { get; set; }
|
||||||
public int BanTime;
|
public int BanTime { get; set; }
|
||||||
|
|
||||||
private string m_bannedHostAddress = string.Empty;
|
private string m_bannedHostAddress = string.Empty;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -140,14 +140,14 @@ namespace OpenSim.Framework
|
||||||
object value = p.GetValue(this, null);
|
object value = p.GetValue(this, null);
|
||||||
if (value is String)
|
if (value is String)
|
||||||
p.SetValue(this, map[p.Name], null);
|
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)
|
else if (value is UInt32)
|
||||||
p.SetValue(this, UInt32.Parse((string)map[p.Name]), null);
|
p.SetValue(this, UInt32.Parse((string)map[p.Name]), null);
|
||||||
else if (value is Boolean)
|
else if (value is Boolean)
|
||||||
p.SetValue(this, Boolean.Parse((string)map[p.Name]), null);
|
p.SetValue(this, Boolean.Parse((string)map[p.Name]), null);
|
||||||
else if (value is UUID)
|
else if (value is UUID)
|
||||||
p.SetValue(this, UUID.Parse((string)map[p.Name]), null);
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue