Handle WARN case in EditHistoryMapper by updating "litebans_warnings" instead of throwing an exception.
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ public interface EditHistoryMapper {
|
|||||||
case BAN -> updateUntil("litebans_bans", id, until);
|
case BAN -> updateUntil("litebans_bans", id, until);
|
||||||
case MUTE -> updateUntil("litebans_mutes", id, until);
|
case MUTE -> updateUntil("litebans_mutes", id, until);
|
||||||
case KICK -> throw new IllegalArgumentException("KICK has no until");
|
case KICK -> throw new IllegalArgumentException("KICK has no until");
|
||||||
case WARN -> throw new IllegalArgumentException("WARN has no until");
|
case WARN -> updateUntil("litebans_warnings", id, until);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user