diff options
author | Adam <Adam@anope.org> | 2016-07-03 12:42:16 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-07-03 12:42:16 -0400 |
commit | 20c1a5d63892deab16af85db85aaac3fcb30de7a (patch) | |
tree | d8b90b7923f2b57463ea3e4f13d61a8505a879b9 | |
parent | 8000ae0c0fe596a0264e4ce15a7cda3ce42d7379 (diff) |
#1680: fix Anope::Duration with one year durations
-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 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 { |