From 8b3869cb34671a5e66fd34443fc0c147e18ef841 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Tue, 25 Jan 2011 03:58:29 +0000 Subject: * Don't spam buildlog warning for console or spectators --- src/game/g_admin.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/game/g_admin.c b/src/game/g_admin.c index ac713014..78507fee 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -2978,9 +2978,10 @@ qboolean G_admin_buildlog( gentity_t *ent ) return qfalse; } - trap_SendServerCommand( -1, - va( "print \"^3buildlog: ^7%s^7 requested a log of recent building activity\n\"", - ent ? ent->client->pers.netname : "console" ) ); + if( ent && ent->client->pers.teamSelection != TEAM_NONE ) + trap_SendServerCommand( -1, + va( "print \"^3buildlog: ^7%s^7 requested a log of recent building activity\n\"", + ent->client->pers.netname ) ); ADMBP_begin(); for( i = start; i < level.buildId && printed < MAX_ADMIN_LISTITEMS; i++ ) -- cgit