summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-12-09 12:35:31 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-12-09 12:35:31 +0100
commit1c64da19e1f08e23fd7020427e89d1d5af35aa1c (patch)
tree50fcd4bb4bfdafe2509fab02f969bc0c1bfaa3af /include
parent94b3599a48f3b53683327be3703a8471f81b916b (diff)
Add ServerLimits constructor that reads limits from a ConfigTag and use it
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/configreader.h b/include/configreader.h
index 342743991..66bb97ea0 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -124,6 +124,11 @@ class ServerLimits
ServerLimits() : NickMax(31), ChanMax(64), MaxModes(20), IdentMax(12),
MaxQuit(255), MaxTopic(307), MaxKick(255), MaxGecos(128), MaxAway(200),
MaxLine(512), MaxHost(64) { }
+
+ /** Read all limits from a config tag. Limits which aren't specified in the tag are set to a default value.
+ * @param tag Configuration tag to read the limits from
+ */
+ ServerLimits(ConfigTag* tag);
};
struct CommandLineConf