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/bs_set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands/bs_set.cpp') diff --git a/modules/commands/bs_set.cpp b/modules/commands/bs_set.cpp index 70b399b08..eeb7cf7c5 100644 --- a/modules/commands/bs_set.cpp +++ b/modules/commands/bs_set.cpp @@ -114,7 +114,7 @@ class CommandBSSetBanExpire : public Command } time_t t = Anope::DoTime(arg); - if (t == -1) + if (t < 0) { source.Reply(BAD_EXPIRY_TIME); return; -- cgit