Minor ban message tweaks

This commit is contained in:
Jackzie 2022-01-27 11:02:55 -06:00
parent ff10667846
commit 77d37ef0ad
No known key found for this signature in database
GPG key ID: 76DF30177DC69DB4
2 changed files with 8 additions and 9 deletions

Binary file not shown.

View file

@ -169,18 +169,17 @@ public void DB_OnConnectCheck(Database db, DBResultSet results, const char[] err
if(!expired) {
if(hKickType.IntValue > 0) {
if(reasonResult == DBVal_Data)
KickClient(client, "You have been banned: %s", reason);
KickClient(client, "You have been banned:\n%s", reason);
else
KickClient(client, "You have been banned from this server.");
} else {
PrintChatToAdmins("%N was banned from this server for: \"%s\"", client, reason);
return;
}
static char query[128];
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 {
PrintChatToAdmins("%N has a previously expired ban of reason \"%s\"", client, reason);
PrintChatToAdmins("%N was banned from this server for: \"%s\"", client, reason);
}
} else {
PrintChatToAdmins("%N was previously banned for \"%s\"", client, reason);
}
}
}