Skip to content

Commit

Permalink
Remove extra zeros on time strings
Browse files Browse the repository at this point in the history
  • Loading branch information
StyledStrike committed Sep 21, 2024
1 parent 873373f commit f8048b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/custom_chat/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ function CustomChat.NiceTime( time )
end

if h > 0 then
return Format( "%02i ", h ) .. L( "time.hours" )
return h .. " " .. L( "time.hours" )
end

if m > 0 and h < 1 and d < 1 then
return Format( "%02i ", m ) .. L( "time.minutes" )
return m .. " " .. L( "time.minutes" )
end

return Format( "%02i ", s ) .. L( "time.seconds" )
return s .. " " .. L( "time.seconds" )
end

function CustomChat.PrintMessage( text )
Expand Down

0 comments on commit f8048b9

Please sign in to comment.