mirror of
https://github.com/anope/anope.git
synced 2026-07-08 08:03:14 +02:00
Correct a couple expiry time checks from DoTime()
This commit is contained in:
@@ -187,7 +187,7 @@ class CommandOSForbid : public Command
|
||||
if (!expiry.empty())
|
||||
{
|
||||
expiryt = Anope::DoTime(expiry);
|
||||
if (expiryt == -1)
|
||||
if (expiryt < 0)
|
||||
{
|
||||
source.Reply(BAD_EXPIRY_TIME);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user