diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config.cpp | 1 | ||||
-rw-r--r-- | src/protocol.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/config.cpp b/src/config.cpp index 3e52b4ae9..1c2aae988 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -1139,6 +1139,7 @@ ConfigItems::ConfigItems(ServerConfig *conf) {"networkinfo", "userlen", "10", new ValueContainerUInt(&conf->UserLen), DT_UINTEGER | DT_NORELOAD, NoValidation}, {"networkinfo", "hostlen", "64", new ValueContainerUInt(&conf->HostLen), DT_UINTEGER | DT_NORELOAD, NoValidation}, {"networkinfo", "chanlen", "32", new ValueContainerUInt(&conf->ChanLen), DT_UINTEGER | DT_NORELOAD, NoValidation}, + {"networkinfo", "modelistsize", "0", new ValueContainerUInt(&conf->ListSize), DT_UINTEGER, NoValidation}, {"options", "user", "", new ValueContainerString(&conf->User), DT_STRING, NoValidation}, {"options", "group", "", new ValueContainerString(&conf->Group), DT_STRING, NoValidation}, {"options", "casemap", "ascii", new ValueContainerString(&conf->CaseMap), DT_STRING, NoValidation}, diff --git a/src/protocol.cpp b/src/protocol.cpp index c14f1ee68..35f302ba8 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -385,6 +385,11 @@ void IRCDProto::SendOper(User *u) u->SetMode(OperServ, "OPER"); } +unsigned IRCDProto::GetMaxListFor(Channel *c) +{ + return c->HasMode("LBAN") ? 0 : Config->ListSize; +} + MessageSource::MessageSource(const Anope::string &src) : source(src), u(NULL), s(NULL) { if (src.empty()) |