Ban if vouchers over a certain threshold

This commit is contained in:
maru committed 2024-04-28 20:59:53 -04:00
1 parent bc8084b70b
commit e184e9da91
2 files changed
+16

No files matched your search

+9
View File
@@ -127,6 +127,15 @@ func UpdateAccountStats(uuid []byte, stats defs.GameStats, voucherCounts map[str
return nil
}
func UpdateAccountBanned(uuid []byte, banned bool) error {
_, err := handle.Exec("UPDATE accounts SET banned = ? WHERE uuid = ?", banned, uuid)
if err != nil {
return err
}
return nil
}
func FetchAndClaimAccountCompensations(uuid []byte) (map[int]int, error) {
var compensations = make(map[int]int)