update for now. technically speaking could some kind of fingerprinting be very usefull here

This commit is contained in:
jenz
2022-04-28 21:12:51 +02:00
parent 7892a73726
commit e51c8d87ad
3 changed files with 60 additions and 1 deletions
@@ -257,7 +257,7 @@ public void sql_truncate_sb_bans_shortened(Database db, DBResultSet results, con
if ((client = GetClientFromSerial(data)) == 0)
return;
char sql_statement[512];
Format(sql_statement, sizeof(sql_statement), "select distinct ip, authid from sb_bans where ip is not null and ip != '' and authid is not null and authid != '' and (RemoveType != 'U' or RemoveType is NULL) and (ends = created or ends > UNIX_TIMESTAMP())");
Format(sql_statement, sizeof(sql_statement), "select distinct ip, authid, name from sb_bans where ip is not null and ip != '' and authid is not null and authid != '' and (RemoveType != 'U' or RemoveType is NULL) and created > UNIX_TIMESTAMP(NOW() - INTERVAL 5 DAY) and (ends > UNIX_TIMESTAMP() or ends = created) order by created desc");
g_hDatabase_sourceban.Query(sql_select_sb_bans, sql_statement, GetClientSerial(client), DBPrio_High);
delete results;
}