1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 09:46:38 +02:00

#1680: fix Anope::Duration with one year durations

This commit is contained in:
Adam
2016-07-03 12:42:16 -04:00
parent 8000ae0c0f
commit 20c1a5d638
+1 -1
View File
@@ -320,7 +320,7 @@ Anope::string Anope::Duration(time_t t, const NickCore *nc)
time_t minutes = (t / 60) % 60;
time_t seconds = (t) % 60;
if (!days && !hours && !minutes)
if (!years && !days && !hours && !minutes)
return stringify(seconds) + " " + (seconds != 1 ? Language::Translate(nc, _("seconds")) : Language::Translate(nc, _("second")));
else
{