summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkai <kai@zittrig.eu>2020-06-02 10:05:28 +0100
committerkai <kai@zittrig.eu>2020-06-02 10:05:28 +0100
commit06fc3ac48c382ea41a28ce425fe130c7541b892f (patch)
treef069701727dee7f7f4a5d929a2971426bcf0e1a3 /src
parent6b576fdaa56cbf8e90a85cad01fb8da423844f03 (diff)
only show as GUID'less to those without SEESINCOGNITO
Diffstat (limited to 'src')
-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 ) );
}