summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-05-17 01:31:32 +0100
committerPeter Powell <petpow@saberuk.com>2013-06-06 00:41:06 +0100
commit7dfcffd6853547eb2e73d161916d5a289069baf2 (patch)
treed283f2b0d3a90da470e4ee5c563ed3f5a4677efb /include
parentd9d99cd02dadf34bfcc220734ba0c422f0acb3e6 (diff)
Start to replace MAXBUF with <limits:maxline>.
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/configreader.h b/include/configreader.h
index cc1412096..b9ca6940e 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -93,14 +93,16 @@ class ServerLimits
size_t MaxGecos;
/** Maximum away message length */
size_t MaxAway;
+ /** Maximum line length */
+ size_t MaxLine;
/** Creating the class initialises it to the defaults
* as in 1.1's ./configure script. Reading other values
* from the config will change these values.
*/
- ServerLimits() : NickMax(31), ChanMax(64), MaxModes(20), IdentMax(12), MaxQuit(255), MaxTopic(307), MaxKick(255), MaxGecos(128), MaxAway(200)
- {
- }
+ ServerLimits() : NickMax(31), ChanMax(64), MaxModes(20), IdentMax(12),
+ MaxQuit(255), MaxTopic(307), MaxKick(255), MaxGecos(128), MaxAway(200),
+ MaxLine(512) { }
};
struct CommandLineConf