summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_channel/cmode_l.cpp2
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)