summaryrefslogtreecommitdiff
path: root/modules/commands/bs_set.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/bs_set.cpp
parent847dfd952326e9d7993aa0776ecce82402a4f416 (diff)
Correct a couple expiry time checks from DoTime()
Diffstat (limited to 'modules/commands/bs_set.cpp')
-rw-r--r--modules/commands/bs_set.cpp2
1 files changed, 1 insertions, 1 deletions
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;