summaryrefslogtreecommitdiff
path: root/src/protocol.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-22 17:11:46 +0000
committerSadie Powell <sadie@witchery.services>2024-02-22 17:25:47 +0000
commit3290ebd36ada5c3f698a124163191187b494c912 (patch)
tree27aefe86f07abe310068bf472e8754289d63fb6d /src/protocol.cpp
parentc4e9c0bf8548da1bf4fe2cfe5e7f5ab101b35e52 (diff)
GetMaxListFor: use size_t and add a default like the other fields.
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r--src/protocol.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp
index 06b654123..9856aa446 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -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)