mirror of
https://github.com/anope/anope.git
synced 2026-07-04 22:33:12 +02:00
Correct a couple expiry time checks from DoTime()
This commit is contained in:
@@ -70,7 +70,7 @@ class CommandCSBan : public Command
|
||||
if (params[1][0] == '+')
|
||||
{
|
||||
ban_time = Anope::DoTime(params[1]);
|
||||
if (ban_time == -1)
|
||||
if (ban_time < 0)
|
||||
{
|
||||
source.Reply(BAD_EXPIRY_TIME);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user