Skip to content

Commit

Permalink
make recent-records use the cvar properly
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Nov 27, 2021
1 parent 3574080 commit 183e758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/shavit-wr.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2023,8 +2023,8 @@ public Action Command_RecentRecords(int client, int args)
char sQuery[512];

FormatEx(sQuery, sizeof(sQuery),
"SELECT a.id, a.map, u.name, a.time, a.style, a.track FROM %swrs a JOIN %susers u on a.auth = u.auth ORDER BY a.date DESC LIMIT 100;",
gS_MySQLPrefix, gS_MySQLPrefix);
"SELECT a.id, a.map, u.name, a.time, a.style, a.track FROM %swrs a JOIN %susers u on a.auth = u.auth ORDER BY a.date DESC LIMIT %d;",
gS_MySQLPrefix, gS_MySQLPrefix, gCV_RecentLimit.IntValue);

gH_SQL.Query(SQL_RR_Callback, sQuery, GetClientSerial(client), DBPrio_Low);

Expand Down

0 comments on commit 183e758

Please sign in to comment.