From d91e8ecc154bd3efa81e20879cc140a693fbda79 Mon Sep 17 00:00:00 2001 From: Krausus Date: Thu, 21 May 2015 21:48:30 -0400 Subject: [PATCH] Fixes permanent bans showing expiration times --- code/modules/admin/IsBanned.dm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/IsBanned.dm b/code/modules/admin/IsBanned.dm index 4f0c356dc57..49dfe4d1eed 100644 --- a/code/modules/admin/IsBanned.dm +++ b/code/modules/admin/IsBanned.dm @@ -68,9 +68,14 @@ world/IsBanned(key,address,computer_id) var/expires = "" if(text2num(duration) > 0) - expires = " The ban is for [duration] minutes and expires on [expiration] (server time)." + expires = "The ban is for [duration] minutes and expires on [expiration] (server time)." + if(bantype == "PERMABAN") + var/appealmsg = "" + if(config && config.banappeals) + appealmsg = " You may appeal it at [config.banappeals]." + expires = "The ban is permanent.[appealmsg]" - var/desc = "\nReason: You, or another user of this computer or connection ([pckey]) is banned from playing here. The ban reason is:\n[reason]\nThis ban was applied by [ackey] on [bantime], [expires]" + var/desc = "\nReason: You, or another user of this computer or connection ([pckey]) is banned from playing here. The ban reason is:\n[reason]\nThis ban was applied by [ackey] on [bantime]. [expires]" return list("reason"="[bantype]", "desc"="[desc]")