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:
+3
-3
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user