summaryrefslogtreecommitdiff
path: root/modules/chanserv
diff options
context:
space:
mode:
Diffstat (limited to 'modules/chanserv')
-rw-r--r--modules/chanserv/ban.cpp2
-rw-r--r--modules/chanserv/suspend.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/chanserv/ban.cpp b/modules/chanserv/ban.cpp
index 196f726b7..cd6b70b1f 100644
--- a/modules/chanserv/ban.cpp
+++ b/modules/chanserv/ban.cpp
@@ -79,7 +79,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(_("Invalid expiry time \002{0}\002."), params[1]);
return;
diff --git a/modules/chanserv/suspend.cpp b/modules/chanserv/suspend.cpp
index f5a928eac..e730ddf49 100644
--- a/modules/chanserv/suspend.cpp
+++ b/modules/chanserv/suspend.cpp
@@ -142,7 +142,7 @@ class CommandCSSuspend : public Command
else
{
expiry_secs = Anope::DoTime(expiry);
- if (expiry_secs == -1)
+ if (expiry_secs < 0)
{
source.Reply(_("Invalid expiry time \002{0}\002."), expiry);
return;