1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 09:16:38 +02:00

Made Anope::DoTime default to seconds to fix os_akill etc defaulting expiries to days

This commit is contained in:
Adam
2013-01-25 04:05:38 -05:00
parent c376fb0a2b
commit ed7c4dc2e1
+2 -2
View File
@@ -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)