summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
authorIronClawTrem <louie.nutman@gmail.com>2019-08-16 14:13:55 +0100
committerIronClawTrem <louie.nutman@gmail.com>2019-08-16 14:13:55 +0100
commit992f09ba4e40e8fe48be6598826960986acb1f13 (patch)
tree3141fef9230ada89ee1ec755d178b26a0d041eb9 /src/game/g_admin.c
parent3b15646332be36d3dcce9d1326ab3c569a8bedea (diff)
SEESINCOGNITO flag added to see people with the INCOGNITO flag normally in listplayers
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 7b81696..afa854f 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -2320,6 +2320,7 @@ static AdminFlagListEntry_t adminFlagList[] =
{ ADMF_DBUILDER, "permanent designated builder" },
{ ADMF_FORCETEAMCHANGE, "team balance rules do not apply" },
{ ADMF_INCOGNITO, "does not show as admin in !listplayers" },
+ { ADMF_SEESINCOGNITO, "sees registered name of players flagged with INCOGNITO" },
{ ADMF_IMMUNITY, "cannot be vote kicked or muted" },
{ ADMF_IMMUTABLE, "admin commands cannot be used on them" },
{ ADMF_NOCENSORFLOOD, "no flood protection" },
@@ -4689,7 +4690,7 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg )
{
// don't gather aka or level info if the admin is incognito
- if( ent && G_admin_permission( &g_entities[ i ], ADMF_INCOGNITO ) )
+ if( ent && G_admin_permission( &g_entities[ i ], ADMF_INCOGNITO ) && !G_admin_permission(ent, ADMF_SEESINCOGNITO) )
{
break;
}