summaryrefslogtreecommitdiff
path: root/modules/commands/ns_suspend.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-01-16 18:42:29 -0500
committerAdam <Adam@anope.org>2017-01-16 18:42:29 -0500
commit34bf21f7d199e3c744ca7a38f2ebd81cbbdaa2ec (patch)
tree42eb6717a40f1528a124e6538eb35f3fb6cfb100 /modules/commands/ns_suspend.cpp
parent847dfd952326e9d7993aa0776ecce82402a4f416 (diff)
Correct a couple expiry time checks from DoTime()
Diffstat (limited to 'modules/commands/ns_suspend.cpp')
-rw-r--r--modules/commands/ns_suspend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/ns_suspend.cpp b/modules/commands/ns_suspend.cpp
index 3be8458c8..a5eef8665 100644
--- a/modules/commands/ns_suspend.cpp
+++ b/modules/commands/ns_suspend.cpp
@@ -81,7 +81,7 @@ class CommandNSSuspend : public Command
else
{
expiry_secs = Anope::DoTime(expiry);
- if (expiry_secs == -1)
+ if (expiry_secs < 0)
{
source.Reply(BAD_EXPIRY_TIME);
return;