summaryrefslogtreecommitdiff
path: root/modules/chanserv/suspend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/chanserv/suspend.cpp')
-rw-r--r--modules/chanserv/suspend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/chanserv/suspend.cpp b/modules/chanserv/suspend.cpp
index f5a928eac..e730ddf49 100644
--- a/modules/chanserv/suspend.cpp
+++ b/modules/chanserv/suspend.cpp
@@ -142,7 +142,7 @@ class CommandCSSuspend : public Command
else
{
expiry_secs = Anope::DoTime(expiry);
- if (expiry_secs == -1)
+ if (expiry_secs < 0)
{
source.Reply(_("Invalid expiry time \002{0}\002."), expiry);
return;