mirror of
https://github.com/anope/anope.git
synced 2026-07-08 01:03:13 +02:00
Warn about really big integer values in the config
This commit is contained in:
@@ -114,7 +114,7 @@ class CommandOSSet : public Command
|
||||
Log(LOG_ADMIN, source, this) << "DEBUG ON";
|
||||
source.Reply(_("Services are now in debug mode."));
|
||||
}
|
||||
else if (setting.equals_ci("OFF") || (setting[0] == '0' && setting.is_number_only() && !convertTo<int>(setting)))
|
||||
else if (setting.equals_ci("OFF") || setting == "0")
|
||||
{
|
||||
Log(LOG_ADMIN, source, this) << "DEBUG OFF";
|
||||
debug = 0;
|
||||
|
||||
Reference in New Issue
Block a user