From ed7c4dc2e17a4616b0242d79ad80466970889fa0 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 25 Jan 2013 04:05:38 -0500 Subject: Made Anope::DoTime default to seconds to fix os_akill etc defaulting expiries to days --- src/misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/misc.cpp') diff --git a/src/misc.cpp b/src/misc.cpp index ade3f46a4..957410656 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -232,7 +232,7 @@ time_t Anope::DoTime(const Anope::string &s) if (s.empty()) return -1; - int amount; + int amount = 0; Anope::string end; try @@ -261,7 +261,7 @@ time_t Anope::DoTime(const Anope::string &s) } catch (const ConvertException &) { } - return 0; + return amount; } Anope::string Anope::Duration(time_t t, const NickCore *nc) -- cgit