Fixed tabbing in Utils.HasBanExpired
This commit is contained in:
parent
3ec7cb1d09
commit
b0d9407f52
1 changed files with 15 additions and 16 deletions
|
|
@ -675,8 +675,7 @@ namespace TShockAPI
|
||||||
DateTime exp;
|
DateTime exp;
|
||||||
bool expirationExists = DateTime.TryParse(ban.Expiration, out exp);
|
bool expirationExists = DateTime.TryParse(ban.Expiration, out exp);
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(ban.Expiration) && (expirationExists) &&
|
if (!string.IsNullOrWhiteSpace(ban.Expiration) && (expirationExists) && (DateTime.UtcNow >= exp))
|
||||||
(DateTime.UtcNow >= exp))
|
|
||||||
{
|
{
|
||||||
if (byName)
|
if (byName)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue