diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-03-06 22:06:57 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-03-06 22:40:46 +0100 |
commit | bf57f0b7a4c7093f7af54587d02d710b62a7da41 (patch) | |
tree | 25128b00369c049f7a182cdc43867371dd1a57f1 /src/game/g_admin.c | |
parent | a4f55a44918811062951d1ae7ed3e706fbea34e7 (diff) |
Log all Autobahn events.
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r-- | src/game/g_admin.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 61e0c1c..c3341d0 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -3496,12 +3496,15 @@ static void admin_autobahn(gentity_t *ent, int rating) if (rating >= g_schachtmeisterClearThreshold.integer) return; - G_AdminsPrintf("%s^7 (#%d) has rating %d\n", ent->client->pers.netname, - ent - g_entities, rating); - // Ban only if the rating is low enough. - if (rating > g_schachtmeisterAutobahnThreshold.integer) + if (rating > g_schachtmeisterAutobahnThreshold.integer) { + G_AdminsPrintf("%s^7 (#%d) has rating %d\n", + ent->client->pers.netname, ent - g_entities, + rating); return; + } + + G_LogAutobahn(ent, NULL, rating, qfalse); if (!ent->client->pers.isPlaceholder) trap_SendServerCommand(ent - g_entities, va("disconnect \"%s\"\n", |