From bf57f0b7a4c7093f7af54587d02d710b62a7da41 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Tue, 6 Mar 2018 22:06:57 +0100 Subject: Log all Autobahn events. --- src/game/g_admin.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/game/g_admin.c') 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", -- cgit