From 34bf21f7d199e3c744ca7a38f2ebd81cbbdaa2ec Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 16 Jan 2017 18:42:29 -0500 Subject: Correct a couple expiry time checks from DoTime() --- modules/commands/cs_ban.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands/cs_ban.cpp') diff --git a/modules/commands/cs_ban.cpp b/modules/commands/cs_ban.cpp index 9716bfd37..0b410789e 100644 --- a/modules/commands/cs_ban.cpp +++ b/modules/commands/cs_ban.cpp @@ -70,7 +70,7 @@ class CommandCSBan : public Command if (params[1][0] == '+') { ban_time = Anope::DoTime(params[1]); - if (ban_time == -1) + if (ban_time < 0) { source.Reply(BAD_EXPIRY_TIME); return; -- cgit