From 2d35c3396a1f00375d45b874dafb9e0bdb520a9b Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 13 Aug 2019 20:11:11 +0100 Subject: Fix some remaining uses of ato[il]. --- src/coremods/core_channel/cmode_l.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/coremods') 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(their_param) < ConvToNum(our_param); } ModeAction ModeChannelLimit::OnSet(User* user, Channel* chan, std::string& parameter) -- cgit v1.2.3