fix: users can now be unbanned.

This commit is contained in:
limited_dev 2023-02-13 21:39:39 +01:00
parent dcc7634f5e
commit 6dff05818b
2 changed files with 10 additions and 0 deletions

View file

@ -83,6 +83,11 @@
return;
}
int userID = foundusr.UserID;
if (DateTimeOffset.Now.ToUnixTimeMilliseconds() - foundusr.TimeBanned < 0)
{
foundusr.TimeBanned = -1;
}
if (foundusr.TimeBanned != -1)
{
hasErr = true;

View file

@ -98,6 +98,11 @@
return;
}
int userID = foundusr.UserID;
if (DateTimeOffset.Now.ToUnixTimeMilliseconds() - foundusr.TimeBanned < 0)
{
foundusr.TimeBanned = -1;
}
if (foundusr.TimeBanned != -1)
{
hasErr = true;