diff options
author | Peter Powell <petpow@saberuk.com> | 2019-08-13 20:11:11 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-08-13 20:11:11 +0100 |
commit | 2d35c3396a1f00375d45b874dafb9e0bdb520a9b (patch) | |
tree | ba19a394ea07799ea94ec31da6c85646fe3bd6eb /src/modules/m_delaymsg.cpp | |
parent | 0827c5c7425a17b6a569a9f706b5b3dea8fa345a (diff) |
Fix some remaining uses of ato[il].
Diffstat (limited to 'src/modules/m_delaymsg.cpp')
-rw-r--r-- | src/modules/m_delaymsg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp index 04d4119c7..cf26df8c1 100644 --- a/src/modules/m_delaymsg.cpp +++ b/src/modules/m_delaymsg.cpp @@ -34,7 +34,7 @@ class DelayMsgMode : public ParamMode<DelayMsgMode, LocalIntExt> bool ResolveModeConflict(std::string& their_param, const std::string& our_param, Channel*) CXX11_OVERRIDE { - return (atoi(their_param.c_str()) < atoi(our_param.c_str())); + return ConvToNum<intptr_t>(their_param) < ConvToNum<intptr_t>(our_param); } ModeAction OnSet(User* source, Channel* chan, std::string& parameter) CXX11_OVERRIDE; |