Update times_tried column when banned attempts to connect

This commit is contained in:
Jackzie 2021-06-18 23:49:34 -05:00
parent b62a044d44
commit 4532656378
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 4 additions and 0 deletions

Binary file not shown.

View file

@ -167,6 +167,10 @@ public void DB_OnConnectCheck(Database db, DBResultSet results, const char[] err
KickClient(client, "You have been banned: %s", reason);
else
KickClient(client, "You have been banned from this server.");
char query[64];
Format(query, sizeof(query), "UPDATE bans SET times_tried=times_tried+1 WHERE steamid = ?", steamid);
db.Query(DB_OnBanQuery, query);
}else{
DeleteBan(steamid);
}