summaryrefslogtreecommitdiff
path: root/modules/commands/cs_ban.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/cs_ban.cpp
parent847dfd952326e9d7993aa0776ecce82402a4f416 (diff)
Correct a couple expiry time checks from DoTime()
Diffstat (limited to 'modules/commands/cs_ban.cpp')
-rw-r--r--modules/commands/cs_ban.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/cs_ban.cpp b/modules/commands/cs_ban.cpp
index 9716bfd37..0b410789e 100644
--- a/modules/commands/cs_ban.cpp
+++ b/modules/commands/cs_ban.cpp
@@ -70,7 +70,7 @@ class CommandCSBan : public Command
if (params[1][0] == '+')
{
ban_time = Anope::DoTime(params[1]);
- if (ban_time == -1)
+ if (ban_time < 0)
{
source.Reply(BAD_EXPIRY_TIME);
return;