summaryrefslogtreecommitdiff
path: root/src/misc.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-09-21 11:21:38 -0400
committerAdam <Adam@anope.org>2013-09-27 19:11:02 -0400
commitdf3c0b7b52066698a97b34edf5352cf344e991ac (patch)
treefb3f2384e8863e9fcb86581ed56516b4c2233b48 /src/misc.cpp
parent45702992ac8c0d36bd0a7eba1580d9cf8a364d74 (diff)
Fix various commands to properly report a given expiry time is invalid
Diffstat (limited to 'src/misc.cpp')
-rw-r--r--src/misc.cpp5
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;
}