mirror of
https://github.com/anope/anope.git
synced 2026-07-07 23:23:13 +02:00
Added an Anope::string::is_pos_number_only function to use everywhere we convertTo unsigned values, and
fixed the mail delay error message to give the correct time.
This commit is contained in:
@@ -676,7 +676,7 @@ class HSRequest : public Module
|
||||
if (params[0].equals_ci("HS_REQUEST") && params.size() >= 5)
|
||||
{
|
||||
Anope::string vident = params[2].equals_ci("(null)") ? "" : params[2];
|
||||
my_add_host_request(params[1], vident, params[3], params[1], params[4].is_number_only() ? convertTo<time_t>(params[4]) : 0);
|
||||
my_add_host_request(params[1], vident, params[3], params[1], params[4].is_pos_number_only() ? convertTo<time_t>(params[4]) : 0);
|
||||
|
||||
return EVENT_STOP;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user