65c8cb0
Fix: stored procedure
small update to fix the stored procedure
if you are already running the latest version, please execute the following sql in your database:
drop procedure ExpireBans;
create procedure ExpireBans()
BEGIN
UPDATE punishments
SET length = IF(length - 1 = 0, -1, length - 1)
WHERE expires_at > NOW();
END;