1
0
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:
Adam
2010-08-27 13:44:30 -04:00
parent ea9b945830
commit 73fb94c553
14 changed files with 97 additions and 96 deletions
+1 -1
View File
@@ -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;
}