diff options
author | Adam <Adam@anope.org> | 2016-07-03 12:42:16 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-06 14:17:24 -0400 |
commit | 897fb6517af066ca284f6190913ad91ae30b6a6b (patch) | |
tree | 8c49f771313bb7c60c6f76953ca4084950f3e2c3 /src | |
parent | 059291bf9fd16e534d2f99bd5aad55d8362da701 (diff) |
#1680: fix Anope::Duration with one year durations
(cherry picked from commit 20c1a5d63892deab16af85db85aaac3fcb30de7a)
Diffstat (limited to 'src')
-rw-r--r-- | src/misc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index 3b306de07..3b044d9fa 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -308,7 +308,7 @@ Anope::string Anope::Duration(time_t t, NickServ::Account *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 { |