summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/botserv/set.cpp2
-rw-r--r--modules/chanserv/ban.cpp2
-rw-r--r--modules/chanserv/suspend.cpp2
-rw-r--r--modules/nickserv/suspend.cpp2
-rw-r--r--modules/operserv/forbid.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/modules/botserv/set.cpp b/modules/botserv/set.cpp
index ad1513872..638aac012 100644
--- a/modules/botserv/set.cpp
+++ b/modules/botserv/set.cpp
@@ -124,7 +124,7 @@ class CommandBSSetBanExpire : public Command
}
time_t t = Anope::DoTime(arg);
- if (t == -1)
+ if (t < 0)
{
source.Reply(_("Invalid expiry time \002{0}\002."), arg);
return;
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;
diff --git a/modules/nickserv/suspend.cpp b/modules/nickserv/suspend.cpp
index a5636334f..c87a8e864 100644
--- a/modules/nickserv/suspend.cpp
+++ b/modules/nickserv/suspend.cpp
@@ -145,7 +145,7 @@ class CommandNSSuspend : 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;
diff --git a/modules/operserv/forbid.cpp b/modules/operserv/forbid.cpp
index e08125311..631f2d785 100644
--- a/modules/operserv/forbid.cpp
+++ b/modules/operserv/forbid.cpp
@@ -236,7 +236,7 @@ class CommandOSForbid : public Command
if (!expiry.empty())
{
expiryt = Anope::DoTime(expiry);
- if (expiryt == -1)
+ if (expiryt < 0)
{
source.Reply(_("Invalid expiry time \002{0}\002."), expiry);
return;