Properly recorded times_tried

This commit is contained in:
Jackzie 2021-11-18 10:31:03 -06:00
parent ebad0b40d2
commit e82a7a9eb2
No known key found for this signature in database
GPG key ID: 1E834FE36520537A

View file

@ -176,7 +176,7 @@ public void DB_OnConnectCheck(Database db, DBResultSet results, const char[] err
PrintChatToAdmins("%N was banned from this server for: \"%s\"", client, reason);
}
static char query[128];
g_db.Format(query, sizeof(query), "UPDATE bans SET times_tried=times_tried+1 WHERE steamid = ?", steamid);
g_db.Format(query, sizeof(query), "UPDATE bans SET times_tried=times_tried+1 WHERE steamid = '%s'", steamid);
g_db.Query(DB_OnBanQuery, query);
}else{
DeleteBan(steamid);