mirror of
https://github.com/anope/anope.git
synced 2026-06-25 17:46:37 +02:00
Fix various commands to properly report a given expiry time is invalid
This commit is contained in:
+4
-1
@@ -294,7 +294,10 @@ time_t Anope::DoTime(const Anope::string &s)
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (const ConvertException &) { }
|
||||
catch (const ConvertException &)
|
||||
{
|
||||
amount = -1;
|
||||
}
|
||||
|
||||
return amount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user