diff options
Diffstat (limited to 'src/bots.cpp')
-rw-r--r-- | src/bots.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bots.cpp b/src/bots.cpp index fbb5de3c7..e1d70d05a 100644 --- a/src/bots.cpp +++ b/src/bots.cpp @@ -155,9 +155,9 @@ void BotInfo::Join(Channel *c, bool update_ts) } Anope::string Limit; - int limit = 0; - if (c->GetParam(CMODE_LIMIT, Limit) && Limit.is_number_only()) - limit = convertTo<int>(Limit); + unsigned limit = 0; + if (c->GetParam(CMODE_LIMIT, Limit) && Limit.is_pos_number_only()) + limit = convertTo<unsigned>(Limit); /* Should we be invited? */ if (c->HasMode(CMODE_INVITE) || (limit && c->users.size() >= limit)) |