fix: users can now be unbanned.
This commit is contained in:
parent
dcc7634f5e
commit
6dff05818b
2 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue