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_ban.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/commands/cs_ban.cpp') diff --git a/modules/commands/cs_ban.cpp b/modules/commands/cs_ban.cpp index 8d1c05336..bb41658de 100644 --- a/modules/commands/cs_ban.cpp +++ b/modules/commands/cs_ban.cpp @@ -69,6 +69,11 @@ class CommandCSBan : public Command if (params[1][0] == '+') { ban_time = Anope::DoTime(params[1]); + if (ban_time == -1) + { + source.Reply(BAD_EXPIRY_TIME); + return; + } if (params.size() < 3) { this->SendSyntax(source); -- cgit