diff options
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index c9e18dc66..fe0c49158 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -294,7 +294,10 @@ time_t Anope::DoTime(const Anope::string &s) } } } - catch (const ConvertException &) { } + catch (const ConvertException &) + { + amount = -1; + } return amount; } |