Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

BannedUntil on TempBanUser takes a unix timestamp now. #28

merged 3 commits into from Mar 19, 2013
@@ -1161,7 +1161,7 @@ private OSDMap TempBanUser(OSDMap map)
OSDMap resp = new OSDMap();
resp["Finished"] = OSD.FromBoolean(true);
UUID agentID = map["UserID"].AsUUID();
- DateTime until = map["BannedUntil"].AsDate();
+ DateTime until = Util.ToDateTime(map["BannedUntil"].AsInteger()); //BannedUntil is a unix timestamp of the date and time the user should be banned till
doBan(agentID, until);
return resp;