diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-03 00:25:28 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-03 00:25:28 +0000 |
commit | 38d7b5b0d9206e85dcf531036b863a0864c35f93 (patch) | |
tree | 076cb0083bfe6c2d58364c0a1c74f89e61fbfea3 /src/inspircd_io.cpp | |
parent | c266d3e4b8201929a3b1c5c358fffb748b2b6c47 (diff) |
*EXPERIMENTAL* <options:hidesplits> ircu-style quit munging for netsplits
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3031 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r-- | src/inspircd_io.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 8534af18e..88cb1438f 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -52,6 +52,7 @@ ServerConfig::ServerConfig() nofork = false; unlimitcore = false; AllowHalfop = true; + HideSplits = false; dns_timeout = 5; MaxTargets = 20; NetBufferSize = 10240; @@ -149,7 +150,7 @@ void ServerConfig::Read(bool bail, userrec* user) { char dbg[MAXBUF],pauseval[MAXBUF],Value[MAXBUF],timeout[MAXBUF],NB[MAXBUF],flood[MAXBUF],MW[MAXBUF],MCON[MAXBUF],MT[MAXBUF]; char AH[MAXBUF],AP[MAXBUF],AF[MAXBUF],DNT[MAXBUF],pfreq[MAXBUF],thold[MAXBUF],sqmax[MAXBUF],rqmax[MAXBUF],SLIMT[MAXBUF]; - char localmax[MAXBUF],globalmax[MAXBUF]; + char localmax[MAXBUF],globalmax[MAXBUF],HS[MAXBUF]; ConnectClass c; std::stringstream errstr; include_stack.clear(); @@ -225,7 +226,9 @@ void ServerConfig::Read(bool bail, userrec* user) ConfValue("options","operonlystats",0,Config->OperOnlyStats,&Config->config_f); ConfValue("options","customversion",0,Config->CustomVersion,&Config->config_f); ConfValue("options","maxtargets",0,MT,&Config->config_f); + ConfValue("options","hidesplits",0,HS,&Config->config_f); + Config->HideSplits = ((*HS == 'y') || (*HS == 'Y') || (*HS == '1') || (*HS == 't') || (*HS == 'T')); Config->SoftLimit = atoi(SLIMT); if (*MT) Config->MaxTargets = atoi(MT); |