added logging message when kicking

This commit is contained in:
jenz 2022-04-10 20:29:33 +02:00
parent 42faa95ffa
commit d679279a55

View File

@ -179,6 +179,9 @@ public void sql_select_cooldown(Database db, DBResultSet results, const char[] e
return; return;
if (results.RowCount && results.FetchRow()) if (results.RowCount && results.FetchRow())
{ {
char sIP[64];
GetClientIP(client, sIP, sizeof(sIP));
LogMessage("%L nosteamer got kicked for dynamic IP ban avoiding(IP: %s).", client, sIP);
KickClient(client, "If you believe this is undeserved write a forum post on https://www.unloze.com"); KickClient(client, "If you believe this is undeserved write a forum post on https://www.unloze.com");
} }
else else
@ -295,6 +298,9 @@ public void sql_update_cooldown(Database db, DBResultSet results, const char[] e
if ((client = GetClientFromSerial(data)) == 0) if ((client = GetClientFromSerial(data)) == 0)
return; return;
delete results; delete results;
char sIP[64];
GetClientIP(client, sIP, sizeof(sIP));
LogMessage("%L nosteamer got kicked for dynamic IP ban avoiding(IP: %s).", client, sIP);
KickClient(client, "If you believe this is undeserved write a forum post on https://www.unloze.com"); KickClient(client, "If you believe this is undeserved write a forum post on https://www.unloze.com");
} }