diff options
| author | Adam <Adam@anope.org> | 2013-03-31 00:20:20 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2013-03-31 00:43:11 -0500 |
| commit | 6e0dc0e2103494d50dd4bd9920550d1653365f05 (patch) | |
| tree | 10b89c24cae17069a0cc97db376d960220f7089d /src | |
| parent | 7e7556f06445d4d8e607ef514c9fb5009899db73 (diff) | |
Add networkinfo:modelistsize config option to set the max size of b/e/I lists
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()) |
