summaryrefslogtreecommitdiff
path: root/modules/commands/bs_set.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/bs_set.cpp')
-rw-r--r--modules/commands/bs_set.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/bs_set.cpp b/modules/commands/bs_set.cpp
index 9e0bac56a..eeb7cf7c5 100644
--- a/modules/commands/bs_set.cpp
+++ b/modules/commands/bs_set.cpp
@@ -1,6 +1,6 @@
/* BotServ core functions
*
- * (C) 2003-2016 Anope Team
+ * (C) 2003-2017 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
@@ -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;