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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user