diff options
author | Adam <Adam@anope.org> | 2010-10-11 15:37:39 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-10-11 15:37:39 -0400 |
commit | 717c123441bb47a4fab859e8fb3ec8c6ac5b7223 (patch) | |
tree | 3be1a3376caafdd8ca9bf75d7acf98020cf94a7c /src/bots.cpp | |
parent | 0ac77d0e42952765d2899565427ce92679142c17 (diff) |
Fixed some warnings
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)) |