diff options
author | Peter Powell <petpow@saberuk.com> | 2013-05-17 01:31:32 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2013-06-06 00:41:06 +0100 |
commit | 7dfcffd6853547eb2e73d161916d5a289069baf2 (patch) | |
tree | d283f2b0d3a90da470e4ee5c563ed3f5a4677efb /src | |
parent | d9d99cd02dadf34bfcc220734ba0c422f0acb3e6 (diff) |
Start to replace MAXBUF with <limits:maxline>.
Diffstat (limited to 'src')
-rw-r--r-- | src/configreader.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index a8c0abe89..bd8320137 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -367,10 +367,15 @@ void ServerConfig::Fill() else { if (ServerName != ConfValue("server")->getString("name")) - throw CoreException("You must restart to change the server name or SID"); + throw CoreException("You must restart to change the server name"); + std::string nsid = ConfValue("server")->getString("id"); if (!nsid.empty() && nsid != sid) - throw CoreException("You must restart to change the server name or SID"); + throw CoreException("You must restart to change the server id"); + + if (Limits.MaxLine != static_cast<size_t>(ConfValue("limits")->getInt("maxline", 512))) + throw CoreException("You must restart to change the maximum line length"); + } diepass = ConfValue("power")->getString("diepass"); restartpass = ConfValue("power")->getString("restartpass"); @@ -423,6 +428,7 @@ void ServerConfig::Fill() Limits.MaxKick = ConfValue("limits")->getInt("maxkick", 255); Limits.MaxGecos = ConfValue("limits")->getInt("maxgecos", 128); Limits.MaxAway = ConfValue("limits")->getInt("maxaway", 200); + Limits.MaxLine = ConfValue("limits")->getInt("maxline", 512); InvBypassModes = options->getBool("invitebypassmodes", true); NoSnoticeStack = options->getBool("nosnoticestack", false); |