TeamUlysses / ulx

ULX: A powerful administration addon for Garry's Mod

Home Page:https://ulyssesmod.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ULX resettodefaults does not clear ban database after SQL migration.

Codingale opened this issue · comments

Description

Since TeamUlysses/ulib@0b4cdd0 the database has been SQL based however the resettodefaults command was not also updated.

ULib.fileDelete( "data/ulib/bans.txt" )

Expected behavior

resettodefaults should reset the ban database, but since it was migrated to SQL it was not updated to clear the table.

Actual behavior

It just deletes the bans.txt file, and does not clear SQL.

Writing this really late after a long day, so pardon me if I'm mistaken, I haven't actually tried it but I think I understand this correctly.

Fixed in v3.81