1
0
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:
Adam
2013-09-21 11:21:38 -04:00
parent 45702992ac
commit df3c0b7b52
7 changed files with 47 additions and 6 deletions
+7
View File
@@ -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);