File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,11 @@ public static async Task<bool> CleanUpPunishmentMessagesAsync()
77
77
foreach ( KeyValuePair < string , UserWarning > entry in warnList )
78
78
{
79
79
UserWarning warn = entry . Value ;
80
+ #if DEBUG
80
81
if ( DateTime . Now > warn . WarnTimestamp . AddSeconds ( Program . cfgjson . AutoWarnMsgAutoDeleteDays ) )
82
+ #else
83
+ if ( DateTime . Now > warn . WarnTimestamp . AddDays ( Program . cfgjson . AutoWarnMsgAutoDeleteDays ) )
84
+ #endif
81
85
{
82
86
try
83
87
{
@@ -106,8 +110,11 @@ public static async Task<bool> CleanUpPunishmentMessagesAsync()
106
110
foreach ( KeyValuePair < string , MemberPunishment > entry in banList )
107
111
{
108
112
MemberPunishment ban = entry . Value ;
109
-
113
+ #if DEBUG
110
114
if ( DateTime . Now > ban . ActionTime . Value . AddSeconds ( Program . cfgjson . CompromisedAccountBanMsgAutoDeleteDays ) )
115
+ #else
116
+ if ( DateTime . Now > ban . ActionTime . Value . AddDays ( Program . cfgjson . CompromisedAccountBanMsgAutoDeleteDays ) )
117
+ #endif
111
118
{
112
119
try
113
120
{
You can’t perform that action at this time.
0 commit comments