diff options
| author | 2018-04-16 22:20:29 +0100 | |
|---|---|---|
| committer | 2018-04-17 18:36:50 +0100 | |
| commit | eff72815b561c1241a00405485d26331ff0a0788 (patch) | |
| tree | 8775c8d9b37aad5549f64430f30983d9848b8875 /src/modules/m_anticaps.cpp | |
| parent | Fix m_ircv3_sts not having the VF_VENDOR flag set. (diff) | |
Convert some usages of ato[il] to use ConvToNum.
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; |
