summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2014-03-06 21:43:36 +0000
committerAttila Molnar <attilamolnar@hush.com>2014-03-08 13:01:09 +0100
commitf2db4b743f0df9b9e588979fd0fcf2815e54af44 (patch)
treeaaef011a92d187cb1e7a81355de18e2f58d8815e /include
parent9ccb36800a6512d9aaa0b429eca0b94d7caa0d33 (diff)
Make the maximum hostname length configurable in the config.
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/configreader.h b/include/configreader.h
index 3cb75ad37..ec9932658 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -114,6 +114,8 @@ class ServerLimits
size_t MaxAway;
/** Maximum line length */
size_t MaxLine;
+ /** Maximum hostname length */
+ size_t MaxHost;
/** Creating the class initialises it to the defaults
* as in 1.1's ./configure script. Reading other values
@@ -121,7 +123,7 @@ class ServerLimits
*/
ServerLimits() : NickMax(31), ChanMax(64), MaxModes(20), IdentMax(12),
MaxQuit(255), MaxTopic(307), MaxKick(255), MaxGecos(128), MaxAway(200),
- MaxLine(512) { }
+ MaxLine(512), MaxHost(64) { }
};
struct CommandLineConf