From 20c1a5d63892deab16af85db85aaac3fcb30de7a Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 3 Jul 2016 12:42:16 -0400 Subject: [PATCH] #1680: fix Anope::Duration with one year durations --- src/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.cpp b/src/misc.cpp index 8149481ca..0938a033c 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -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 {