Skip to content

Commit bcb665d

Browse files
Remove warnings from 'automaticWarnings' hash when manually deleted
1 parent e32ca3a commit bcb665d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Helpers/WarningHelpers.cs

+3
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,9 @@ public static async Task<bool> DelWarningAsync(UserWarning warning, ulong userID
369369
{
370370
if (userID == default)
371371
userID = warning.TargetUserId;
372+
373+
if (Program.db.HashExists("automaticWarnings", warning.WarningId))
374+
await Program.db.HashDeleteAsync("automaticWarnings", warning.WarningId);
372375

373376
if (Program.db.HashExists(userID.ToString(), warning.WarningId))
374377
{

0 commit comments

Comments
 (0)