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_suspend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands/cs_suspend.cpp') diff --git a/modules/commands/cs_suspend.cpp b/modules/commands/cs_suspend.cpp index 71f6f1536..87df57610 100644 --- a/modules/commands/cs_suspend.cpp +++ b/modules/commands/cs_suspend.cpp @@ -75,7 +75,7 @@ class CommandCSSuspend : public Command else { expiry_secs = Anope::DoTime(expiry); - if (expiry_secs == -1) + if (expiry_secs < 0) { source.Reply(BAD_EXPIRY_TIME); return; -- cgit