Skip to content

Commit

Permalink
Made Anope::DoTime default to seconds to fix os_akill etc defaulting …
Browse files Browse the repository at this point in the history
…expiries to days
  • Loading branch information
Adam- committed Jan 25, 2013
1 parent c376fb0 commit ed7c4dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/misc.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ed7c4dc

Please sign in to comment.