From c1f88cfa9c653c0df9574edb6995a7385543be83 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 19 Feb 2007 19:57:41 +0000 Subject: Addition of feature request outlined in bug #195, suggested by Bricker git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6602 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 90719afa7..9d920dc8c 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -39,6 +39,8 @@ ServerConfig::ServerConfig(InspIRCd* Instance) : ServerInstance(Instance) MaxConn = SOMAXCONN; MaxWhoResults = 100; debugging = 0; + MaxChans = 20; + OperMaxChans = 30; LogLevel = DEFAULT; maxbans.clear(); } @@ -594,6 +596,8 @@ void ServerConfig::Read(bool bail, userrec* user) {"whowas", "maxgroups", "10240", new ValueContainerInt (&this->WhoWasMaxGroups), DT_INTEGER, NoValidation}, {"whowas", "maxkeep", "3600", new ValueContainerChar (maxkeep), DT_CHARPTR, ValidateWhoWas}, {"die", "value", "", new ValueContainerChar (this->DieValue), DT_CHARPTR, NoValidation}, + {"channels", "users", "20", new ValueContainerUInt (&this->MaxChans), DT_INTEGER, NoValidation}, + {"channels", "opers", "60", new ValueContainerUInt (&this->OperMaxChans), DT_INTEGER, NoValidation}, {NULL} }; -- cgit v1.3.1-10-gc9f91