summaryrefslogtreecommitdiff
path: root/modules/commands/os_forbid.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/os_forbid.cpp
parent847dfd952326e9d7993aa0776ecce82402a4f416 (diff)
Correct a couple expiry time checks from DoTime()
Diffstat (limited to 'modules/commands/os_forbid.cpp')
-rw-r--r--modules/commands/os_forbid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/os_forbid.cpp b/modules/commands/os_forbid.cpp
index 6b8c6c03d..0d4426839 100644
--- a/modules/commands/os_forbid.cpp
+++ b/modules/commands/os_forbid.cpp
@@ -187,7 +187,7 @@ class CommandOSForbid : public Command
if (!expiry.empty())
{
expiryt = Anope::DoTime(expiry);
- if (expiryt == -1)
+ if (expiryt < 0)
{
source.Reply(BAD_EXPIRY_TIME);
return;