diff options
author | M. Kristall <mkpdev@gmail.com> | 2011-01-25 03:58:29 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:54 +0000 |
commit | 8b3869cb34671a5e66fd34443fc0c147e18ef841 (patch) | |
tree | 2236ec5d7f82e3793c36b8d495dbe5e3d23556c2 | |
parent | 3af93ab661252968c1fef2d5ec151f932b3481e1 (diff) |
* Don't spam buildlog warning for console or spectators
-rw-r--r-- | src/game/g_admin.c | 7 |
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++ ) |