summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2011-01-25 03:58:29 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:17:54 +0000
commit8b3869cb34671a5e66fd34443fc0c147e18ef841 (patch)
tree2236ec5d7f82e3793c36b8d495dbe5e3d23556c2 /src
parent3af93ab661252968c1fef2d5ec151f932b3481e1 (diff)
* Don't spam buildlog warning for console or spectators
Diffstat (limited to 'src')
-rw-r--r--src/game/g_admin.c7
1 files 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++ )