diff options
Diffstat (limited to 'src/modules/m_anticaps.cpp')
-rw-r--r-- | src/modules/m_anticaps.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_anticaps.cpp b/src/modules/m_anticaps.cpp index 6b0c192be..b6167893c 100644 --- a/src/modules/m_anticaps.cpp +++ b/src/modules/m_anticaps.cpp @@ -75,7 +75,7 @@ class AntiCapsMode : public ParamMode<AntiCapsMode, SimpleExtItem<AntiCapsSettin if (!stream.GetToken(minlenstr)) return false; - uint16_t result = atoi(minlenstr.c_str()); + uint16_t result = ConvToNum<uint16_t>(minlenstr); if (result < 1 || result > ServerInstance->Config->Limits.MaxLine) return false; @@ -89,7 +89,7 @@ class AntiCapsMode : public ParamMode<AntiCapsMode, SimpleExtItem<AntiCapsSettin if (!stream.GetToken(percentstr)) return false; - int result = atoi(percentstr.c_str()); + uint8_t result = ConvToNum<uint8_t>(percentstr); if (result < 1 || result > 100) return false; |