summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-04-13 11:30:00 +0000
committer/dev/humancontroller <devhc@example.com>2017-04-15 17:24:21 +0200
commitb7dab9d64c5b36e94262ad127ce80ed83226b56f (patch)
treed1da64a82c9502aca7e04761b9b5760f56e50144 /src
parentef3cc5396fbcf193ddd1e3b6b5978bdda4bdbe55 (diff)
Make SEESFULLLISTPLAYERS great again.
Diffstat (limited to 'src')
-rw-r--r--src/game/g_admin.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 481f957..7bd4f0d 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -5038,7 +5038,8 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg )
}
}
immune[ 0 ] = '\0';
- if( G_admin_permission( &g_entities[ i ], ADMF_BAN_IMMUNITY ) )
+ if( G_admin_permission( &g_entities[ i ], ADMF_BAN_IMMUNITY ) &&
+ G_admin_permission(ent, ADMF_SEESFULLLISTPLAYERS ) )
{
Q_strncpyz( immune, "I", sizeof( immune ) );
}
@@ -5095,8 +5096,7 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg )
else
karma[ 0 ] = '\0';
- if( G_admin_permission(ent, ADMF_SEESFULLLISTPLAYERS ) ) {
-
+ if ( G_admin_permission(ent, ADMF_SEESFULLLISTPLAYERS ) ) {
ADMBP( va( "%2i %s%s^7%s %-2i %s^7 (*%s) ^1%1s%1s%1s%1s^7 %s^7 %s%s^7%s\n",
i,
c,
@@ -5114,20 +5114,24 @@ qboolean G_admin_listplayers( gentity_t *ent, int skiparg )
n,
( *n ) ? ")" : ""
) );
- }
- else
- {
- ADMBP( va( "%2i %s%s^7%s ^1%1s%1s%1s^7 %s^7\n",
+ } else {
+ ADMBP( va( "%2i %s%s^7%s %-2i %s^7 ^1%1s%1s%1s%1s^7 %s^7 %s%s^7%s\n",
i,
c,
t,
karma,
+ l,
+ ( *lname ) ? lname2 : "",
+ immune,
muted,
dbuilder,
denied,
- p->pers.netname
+ p->pers.netname,
+ ( *n ) ? "(a.k.a. " : "",
+ n,
+ ( *n ) ? ")" : ""
) );
- }
+ }
}
ADMBP_end();
return qtrue;