Trench-Wars / twcore

Trench Wars bot project
5 stars 1 forks source link

Formatting glitch in core's !uptime #86

Open connermcd opened 8 years ago

connermcd commented 8 years ago

Trac Ticket #1159 new defect

Reported by: Trancid Owned by: Trancid Component: Core Priority: low Severity: minor

Description:

Whenever a parameter displayed in the !uptime command is 0, the actual part seems to be skipped.

Example: ThePAP> !uptime TWCore-Pub> Uptime: 7 days, 3 hours, , and 47 seconds. ThePAP> !uptime TWCore-Pub> Uptime: 7 days, 3 hours, , and 54 seconds. ThePAP> !uptime TWCore-Pub> Uptime: 7 days, 3 hours, 1 minute, and 1 second.

connermcd commented 8 years ago

qan> This still a problem? Code looks OK.

!uptime uses the Tools.getTimeDiffString method