From 41a2935b67a7155d69f252fbe67f9b9dd6a46408 Mon Sep 17 00:00:00 2001 From: ShizCalev Date: Sat, 20 Oct 2018 14:35:57 -0400 Subject: [PATCH] Clean up redundant text2num in ban messages (#41024) --- code/modules/admin/IsBanned.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/IsBanned.dm b/code/modules/admin/IsBanned.dm index 36f048af2bc..8fd9e815b79 100644 --- a/code/modules/admin/IsBanned.dm +++ b/code/modules/admin/IsBanned.dm @@ -104,7 +104,7 @@ addclientmessage(ckey,"You have been allowed to bypass a matching ban on [pkey] (#[banid])") continue var/expires = "" - if(text2num(duration) > 0) + if(duration > 0) expires = "\nThe ban is for [DisplayTimeText(duration MINUTES)] and expires on [expiration] (server time)." //convert from minutes into deciseconds to display the amount of time in days, hours, minutes, ect. else expires = "\nThis is a permanent ban."