mirror of
https://github.com/znc/znc.git
synced 2026-07-03 08:21:57 +02:00
Add a global setting whether to show ZNC version or not
Close #820 Close #821
This commit is contained in:
@@ -1684,6 +1684,7 @@ public:
|
||||
Tmpl["ServerThrottle"] = CString(CZNC::Get().GetServerThrottle());
|
||||
Tmpl["AnonIPLimit"] = CString(CZNC::Get().GetAnonIPLimit());
|
||||
Tmpl["ProtectWebSessions"] = CString(CZNC::Get().GetProtectWebSessions());
|
||||
Tmpl["HideVersion"] = CString(CZNC::Get().GetHideVersion());
|
||||
|
||||
const VCString& vsBindHosts = CZNC::Get().GetBindHosts();
|
||||
for (unsigned int a = 0; a < vsBindHosts.size(); a++) {
|
||||
@@ -1817,6 +1818,7 @@ public:
|
||||
sArg = WebSock.GetParam("serverthrottle"); CZNC::Get().SetServerThrottle(sArg.ToUInt());
|
||||
sArg = WebSock.GetParam("anoniplimit"); CZNC::Get().SetAnonIPLimit(sArg.ToUInt());
|
||||
sArg = WebSock.GetParam("protectwebsessions"); CZNC::Get().SetProtectWebSessions(sArg.ToBool());
|
||||
sArg = WebSock.GetParam("hideversion"); CZNC::Get().SetHideVersion(sArg.ToBool());
|
||||
|
||||
VCString vsArgs;
|
||||
WebSock.GetRawParam("motd").Split("\n", vsArgs);
|
||||
|
||||
Reference in New Issue
Block a user