Handle WARN case in EditHistoryMapper by updating "litebans_warnings" instead of throwing an exception.
This commit is contained in:
parent
0f11167953
commit
a50b4ed658
|
|
@ -48,7 +48,7 @@ public interface EditHistoryMapper {
|
|||
case BAN -> updateUntil("litebans_bans", id, until);
|
||||
case MUTE -> updateUntil("litebans_mutes", id, 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);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user