summaryrefslogtreecommitdiff
path: root/src/misc.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-25 04:05:38 -0500
committerAdam <Adam@anope.org>2013-01-25 04:05:38 -0500
commited7c4dc2e17a4616b0242d79ad80466970889fa0 (patch)
treee16782c6dd3ad0593d7fdd7628998f61070102bb /src/misc.cpp
parentc376fb0a2b6f9f7f42a82f5da73b2e206bfaf0dd (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.cpp4
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)