1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 15:26:38 +02:00

Fixed some warnings

This commit is contained in:
Adam
2010-10-11 15:37:39 -04:00
parent 0ac77d0e42
commit 717c123441
16 changed files with 64 additions and 62 deletions
+3 -3
View File
@@ -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))