Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
Update raw.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio1988 authored Sep 14, 2023
1 parent 754fb75 commit aabf4dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/raw.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ func Raw(c *gin.Context) {
}
}
if ws.CheckLimitExceeded() {
log.Warnf("[RAW] [%s] [%s] Account would exceed soft limits - DISABLED ACCOUNT", res.Uuid, res.Username)
if isValid, _ := accountManager.IsValidAccount(res.Username); isValid {
log.Warnf("[RAW] [%s] [%s] Account would exceed soft limits - DISABLED ACCOUNT", res.Uuid, res.Username)
accountManager.MarkDisabled(res.Username)
log.Debugf("[RAW] [%s] [%s] Account limits: %v", res.Uuid, res.Username, ws.RequestCounts())
}
log.Infof("[RAW] [%s] [%s] Account limits: %v", res.Uuid, res.Username, ws.RequestCounts())
}
}()
}
Expand Down

0 comments on commit aabf4dc

Please sign in to comment.