Skip to content

Commit

Permalink
Fix mistakenly changed comparison when building for Release
Browse files Browse the repository at this point in the history
  • Loading branch information
FloatingMilkshake committed Dec 24, 2024
1 parent 6cc9b66 commit 50beb41
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Tasks/PunishmentTasks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ public static async Task<bool> CleanUpPunishmentMessagesAsync()
foreach (KeyValuePair<string, UserWarning> entry in warnList)
{
UserWarning warn = entry.Value;
#if DEBUG
if (DateTime.Now > warn.WarnTimestamp.AddSeconds(Program.cfgjson.AutoWarnMsgAutoDeleteDays))
#else
if (DateTime.Now > warn.WarnTimestamp.AddDays(Program.cfgjson.AutoWarnMsgAutoDeleteDays))
#endif
{
try
{
Expand Down Expand Up @@ -106,8 +110,11 @@ public static async Task<bool> CleanUpPunishmentMessagesAsync()
foreach (KeyValuePair<string, MemberPunishment> entry in banList)
{
MemberPunishment ban = entry.Value;
#if DEBUG
if (DateTime.Now > ban.ActionTime.Value.AddSeconds(Program.cfgjson.CompromisedAccountBanMsgAutoDeleteDays))
#else
if (DateTime.Now > ban.ActionTime.Value.AddDays(Program.cfgjson.CompromisedAccountBanMsgAutoDeleteDays))
#endif
{
try
{
Expand Down

0 comments on commit 50beb41

Please sign in to comment.