Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions anticheat/anticheat.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ func New(db *sql.DB, dispatch chan func()) *AntiCheat {
db: db,
dispatch: dispatch,
}
ac.enabled = true
return ac
}

// SetEnabled enables or disables automatic banning. When disabled, violation
// tracking calls are no-ops and no bans are issued automatically.
func (ac *AntiCheat) SetEnabled(enabled bool) {
ac.enabled = true
ac.enabled = enabled
}

func (ac *AntiCheat) SetOnBan(fn func(accountID int32)) {
Expand Down
Loading