1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 14:23: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
+5
View File
@@ -69,6 +69,11 @@ class CommandCSBan : public Command
if (params[1][0] == '+')
{
ban_time = Anope::DoTime(params[1]);
if (ban_time == -1)
{
source.Reply(BAD_EXPIRY_TIME);
return;
}
if (params.size() < 3)
{
this->SendSyntax(source);