summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_admin.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index e8761fc..e22639a 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -5016,7 +5016,10 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg )
}
guidless[ 0 ] = '\0';
- if( !Q_stricmp( p->pers.guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ) || G_admin_permission( &g_entities[ i ], ADMF_INCOGNITO ) )
+ if( !Q_stricmp( p->pers.guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" )
+ || ( G_admin_permission( &g_entities[ i ], ADMF_INCOGNITO )
+ && !admin_higher( ent, &g_entities[ i ] )
+ && !G_admin_permission( ent, ADMF_SEESINCOGNITO ) ) )
{
Q_strncpyz( guidless, "G", sizeof( guidless ) );
}