summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c11
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",