diff options
-rw-r--r-- | src/game/g_admin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index badf49aa..007b13fc 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -874,12 +874,12 @@ qboolean G_admin_ban_check( gentity_t *ent, char *reason, int rlen ) Com_sprintf( warningMessage, sizeof( warningMessage ), S_COLOR_YELLOW "Banned player %s" S_COLOR_YELLOW - " tried to connect from %s (ban #%d)\n", + " tried to connect from %s (ban #%d)", ent->client->pers.netname[ 0 ] ? ent->client->pers.netname : ban->name, ent->client->pers.ip.str, i + 1 ); - trap_Print( warningMessage ); + trap_Print( va( "%s\n", warningMessage ) ); // don't spam admins if( ban->warnCount++ < 5 ) G_AdminMessage( NULL, warningMessage ); |