diff options
author | Adam <Adam@anope.org> | 2013-01-25 04:05:38 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-01-25 04:05:38 -0500 |
commit | ed7c4dc2e17a4616b0242d79ad80466970889fa0 (patch) | |
tree | e16782c6dd3ad0593d7fdd7628998f61070102bb /src/misc.cpp | |
parent | c376fb0a2b6f9f7f42a82f5da73b2e206bfaf0dd (diff) |
Made Anope::DoTime default to seconds to fix os_akill etc defaulting expiries to days
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |