summaryrefslogtreecommitdiff
path: root/src/bots.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-11 15:37:39 -0400
committerAdam <Adam@anope.org>2010-10-11 15:37:39 -0400
commit717c123441bb47a4fab859e8fb3ec8c6ac5b7223 (patch)
tree3be1a3376caafdd8ca9bf75d7acf98020cf94a7c /src/bots.cpp
parent0ac77d0e42952765d2899565427ce92679142c17 (diff)
Fixed some warnings
Diffstat (limited to 'src/bots.cpp')
-rw-r--r--src/bots.cpp6
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))