summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/g_admin.c3
-rw-r--r--src/game/g_admin.h2
2 files changed, 4 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;
}
diff --git a/src/game/g_admin.h b/src/game/g_admin.h
index 7793abe..08bd58b 100644
--- a/src/game/g_admin.h
+++ b/src/game/g_admin.h
@@ -59,6 +59,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* ACTIVITY - inactivity rules do not apply to them
* IMMUTABLE - admin commands cannot be used on them
* INCOGNITO - does not show up as an admin in !listplayers
+ * SEESINCOGNITO - sees registered name of players flagged with INCOGNITO
* ADMINCHAT - receives and can send /a admin messages
* SEESFULLLISTPLAYERS - sees all information in !listplayers
* DBUILDER - permanent designated builder
@@ -84,6 +85,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define ADMF_IMMUTABLE "IMMUTABLE"
#define ADMF_INCOGNITO "INCOGNITO"
+#define ADMF_SEESINCOGNITO "SEESINCOGNITO"
#define ADMF_ADMINCHAT "ADMINCHAT"
#define ADMF_HIGHADMINCHAT "HIGHADMINCHAT"
#define ADMF_SEESFULLLISTPLAYERS "SEESFULLLISTPLAYERS"