mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
makeconf: kill buffer and chan mode questions
Use webadmin/controlpanel to configure buffers and default chan modes
This commit is contained in:
-23
@@ -692,29 +692,6 @@ bool CZNC::WriteNewConfig(const CString& sConfigFile) {
|
||||
if (!sAnswer.empty()) {
|
||||
vsLines.push_back("\tBindHost = " + sAnswer);
|
||||
}
|
||||
// todo: Possibly add motd
|
||||
|
||||
unsigned int uBufferCount = 0;
|
||||
|
||||
CUtils::GetNumInput("Number of lines to buffer per channel or query", uBufferCount, 0, ~0, 50);
|
||||
if (uBufferCount) {
|
||||
vsLines.push_back("\tBuffer = " + CString(uBufferCount));
|
||||
}
|
||||
if (CUtils::GetBoolInput("Would you like to clear channel buffers after replay?", true)) {
|
||||
vsLines.push_back("\tAutoClearChanBuffer = true");
|
||||
} else {
|
||||
vsLines.push_back("\tAutoClearChanBuffer = false");
|
||||
}
|
||||
if (CUtils::GetBoolInput("Would you like to clear query buffers after replay?", true)) {
|
||||
vsLines.push_back("\tAutoClearQueryBuffer = true");
|
||||
} else {
|
||||
vsLines.push_back("\tAutoClearQueryBuffer = false");
|
||||
}
|
||||
|
||||
CUtils::GetInput("Default channel modes", sAnswer, "+stn");
|
||||
if (!sAnswer.empty()) {
|
||||
vsLines.push_back("\tChanModes = " + sAnswer);
|
||||
}
|
||||
|
||||
set<CModInfo> ssUserMods;
|
||||
GetModules().GetDefaultMods(ssUserMods, CModInfo::UserModule);
|
||||
|
||||
Reference in New Issue
Block a user