mirror of
https://github.com/anope/anope.git
synced 2026-07-06 17:43:14 +02:00
Fix various commands to properly report a given expiry time is invalid
This commit is contained in:
@@ -73,7 +73,14 @@ class CommandCSSuspend : public Command
|
||||
expiry.clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
expiry_secs = Anope::DoTime(expiry);
|
||||
if (expiry_secs == -1)
|
||||
{
|
||||
source.Reply(BAD_EXPIRY_TIME);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (Anope::ReadOnly)
|
||||
source.Reply(READ_ONLY_MODE);
|
||||
|
||||
Reference in New Issue
Block a user