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/coremods | |
parent | 0827c5c7425a17b6a569a9f706b5b3dea8fa345a (diff) |
Fix some remaining uses of ato[il].
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_channel/cmode_l.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_channel/cmode_l.cpp b/src/coremods/core_channel/cmode_l.cpp index d3b806956..7e3135eac 100644 --- a/src/coremods/core_channel/cmode_l.cpp +++ b/src/coremods/core_channel/cmode_l.cpp @@ -32,7 +32,7 @@ ModeChannelLimit::ModeChannelLimit(Module* Creator) bool ModeChannelLimit::ResolveModeConflict(std::string &their_param, const std::string &our_param, Channel*) { /* When TS is equal, the higher channel limit wins */ - return (atoi(their_param.c_str()) < atoi(our_param.c_str())); + return ConvToNum<intptr_t>(their_param) < ConvToNum<intptr_t>(our_param); } ModeAction ModeChannelLimit::OnSet(User* user, Channel* chan, std::string& parameter) |