1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 09:56:39 +02:00

GetMaxListFor: use size_t and add a default like the other fields.

This commit is contained in:
Sadie Powell
2024-02-22 17:11:46 +00:00
parent c4e9c0bf85
commit 3290ebd36a
4 changed files with 6 additions and 12 deletions
+2 -7
View File
@@ -399,14 +399,9 @@ void IRCDProto::SendOper(User *u)
u->SetMode(NULL, "OPER");
}
unsigned IRCDProto::GetMaxListFor(Channel *c)
size_t IRCDProto::GetMaxListFor(Channel *c, ChannelMode *cm)
{
return c->HasMode("LBAN") ? 0 : Config->GetBlock("networkinfo")->Get<int>("modelistsize");
}
unsigned IRCDProto::GetMaxListFor(Channel *c, ChannelMode *cm)
{
return GetMaxListFor(c);
return c->HasMode("LBAN") ? 0 : Config->GetBlock("networkinfo")->Get<size_t>("modelistsize", "100");
}
Anope::string IRCDProto::NormalizeMask(const Anope::string &mask)