summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkai <kai@zittrig.eu>2020-06-11 16:57:01 +0100
committerkai <kai@zittrig.eu>2020-06-11 16:57:01 +0100
commit7cc167ed682ac06b70d8e755f0d8b89617333bd0 (patch)
treee326322cad184e048d8e6a1a896cc543c614674c /src
parent1d1add06a4d7025b7492e75cdc06020cb2f4e3f1 (diff)
fix the status of unbanned permabans in !showbans
Diffstat (limited to 'src')
-rw-r--r--src/game/g_admin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index c446764..70e31eb 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -5565,8 +5565,7 @@ qboolean G_admin_showbans( gentity_t *ent, int skiparg )
duration[0] = '\0';
secs = ( g_admin_bans[ i ]->expires - t );
- if( g_admin_bans[ i ]->expires == 0 // is it permanent?
- && secs < 1 )
+ if( g_admin_bans[ i ]->length == 0 ) // is it permanent?
{
Com_sprintf( length, sizeof( length ), "^1PERMANENT" );
}