From df3c0b7b52066698a97b34edf5352cf344e991ac Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 21 Sep 2013 11:21:38 -0400 Subject: Fix various commands to properly report a given expiry time is invalid --- src/misc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit