mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
fix 24 hour bans
This commit is contained in:
parent
ac6e58ff9e
commit
f8304aecd7
@ -71,6 +71,10 @@ public class Ban
|
|||||||
dedupeIps();
|
dedupeIps();
|
||||||
this.by = by;
|
this.by = by;
|
||||||
this.at = at;
|
this.at = at;
|
||||||
|
if (expire == null)
|
||||||
|
{
|
||||||
|
expire = FUtil.parseDateOffset("24h");
|
||||||
|
}
|
||||||
this.expiryUnix = FUtil.getUnixTime(expire);
|
this.expiryUnix = FUtil.getUnixTime(expire);
|
||||||
this.reason = reason;
|
this.reason = reason;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user