Add kick reason to db

This commit is contained in:
Jackzie 2022-03-15 22:06:12 -05:00
parent ff3ba744fd
commit c3e43d744a
No known key found for this signature in database
GPG key ID: 1E834FE36520537A
2 changed files with 2 additions and 1 deletions

View file

@ -124,11 +124,12 @@ public Action OnBanClient(int client, int time, int flags, const char[] reason,
}
g_db.Format(query, sizeof(query), "INSERT INTO bans"
..."(steamid, ip, reason, expires, executor, ip_banned)"
..."(steamid, ip, reason, public_message, expires, executor, ip_banned)"
..."VALUES ('%s', '%s', '%s', FROM_UNIXTIME(%s), '%s', 0)",
identity,
ip,
reason,
kick_message,
expiresDate,
executor
);