summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaeJong <mewiceclair@gmail.com>2017-05-20 13:51:33 +0200
committerPaweł Redman <pawel.redman@gmail.com>2017-05-22 15:26:33 +0200
commit96191eb5f1a02492fab7d02b14e4e8b75b64bc40 (patch)
tree83bc621f365c1e696f85c08b53087b74121c0221 /src
parentfb80ecb2433424313064c13a8896ff1fbf361ceb (diff)
Display 0 as Schachtmeister judgement instead of N/A if admin has flag INCOGNITO
Diffstat (limited to 'src')
-rw-r--r--src/game/g_admin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index fe0885f..44b6f07 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -6964,7 +6964,9 @@ static const char *displaySchachtmeisterJudgement(const schachtmeisterJudgement_
{
static char buffer[20];
- if (strcmp(namelog->guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") &&
+ if (G_admin_permission_guid(namelog->guid, ADMF_INCOGNITO)) {
+ Com_sprintf(buffer, sizeof(buffer), "^2 +0");
+ } else if (strcmp(namelog->guid, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX") &&
(G_admin_permission_guid(namelog->guid, ADMF_NOAUTOBAHN) ||
G_admin_permission_guid(namelog->guid, ADMF_IMMUNITY))) {
Com_sprintf(buffer, sizeof(buffer), "^7 N/A ");