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 --- modules/commands/cs_suspend.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/commands/cs_suspend.cpp') diff --git a/modules/commands/cs_suspend.cpp b/modules/commands/cs_suspend.cpp index 241d28453..bc122d048 100644 --- a/modules/commands/cs_suspend.cpp +++ b/modules/commands/cs_suspend.cpp @@ -73,7 +73,14 @@ class CommandCSSuspend : public Command expiry.clear(); } else + { expiry_secs = Anope::DoTime(expiry); + if (expiry_secs == -1) + { + source.Reply(BAD_EXPIRY_TIME); + return; + } + } if (Anope::ReadOnly) source.Reply(READ_ONLY_MODE); -- cgit