From 73fb94c55344b6ad788c925bf13325236402891f Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 27 Aug 2010 13:44:30 -0400 Subject: 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. --- include/anope.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/anope.h b/include/anope.h index 84f68ac45..020abd4cd 100644 --- a/include/anope.h +++ b/include/anope.h @@ -198,6 +198,7 @@ namespace Anope * Determine if string consists of only numbers. */ inline bool is_number_only() const { return this->find_first_not_of("0123456789.-") == npos; } + inline bool is_pos_number_only() const { return this->find_first_not_of("0123456789.") == npos; } /** * Replace parts of the string. -- cgit