mirror of
https://github.com/znc/znc.git
synced 2026-08-07 17:33:34 +02:00
makeconf: one server is enough to get started
Webadmin is more convenient and enabled by default since 7387f00.
This commit is contained in:
+9
-15
@@ -721,28 +721,22 @@ bool CZNC::WriteNewConfig(const CString& sConfigFile) {
|
||||
|
||||
vsLines.push_back("");
|
||||
CUtils::PrintMessage("");
|
||||
CUtils::PrintMessage("-- IRC Servers --");
|
||||
CUtils::PrintMessage("Only add servers from the same IRC network.");
|
||||
CUtils::PrintMessage("If a server from the list can't be reached, another server will be used.");
|
||||
CUtils::PrintMessage("-- IRC Server --");
|
||||
CUtils::PrintMessage("");
|
||||
|
||||
do {
|
||||
CString sHost, sPass;
|
||||
bool bSSL = false;
|
||||
unsigned int uServerPort = 0;
|
||||
CString sHost, sPass;
|
||||
bool bSSL = false;
|
||||
unsigned int uServerPort = 0;
|
||||
|
||||
while (!CUtils::GetInput("IRC server", sHost, "", "host only") || !CServer::IsValidHostName(sHost)) ;
|
||||
while (!CUtils::GetNumInput("[" + sHost + "] Port", uServerPort, 1, 65535, 6667)) ;
|
||||
CUtils::GetInput("[" + sHost + "] Password (probably empty)", sPass);
|
||||
while (!CUtils::GetInput("IRC server", sHost, "", "host only") || !CServer::IsValidHostName(sHost)) ;
|
||||
while (!CUtils::GetNumInput("[" + sHost + "] Port", uServerPort, 1, 65535, 6667)) ;
|
||||
CUtils::GetInput("[" + sHost + "] Password (probably empty)", sPass);
|
||||
|
||||
#ifdef HAVE_LIBSSL
|
||||
bSSL = CUtils::GetBoolInput("Does this server use SSL?", uServerPort == 6697);
|
||||
bSSL = CUtils::GetBoolInput("Does this server use SSL?", uServerPort == 6697);
|
||||
#endif
|
||||
|
||||
vsLines.push_back("\t\tServer = " + sHost + ((bSSL) ? " +" : " ") + CString(uServerPort) + " " + sPass);
|
||||
|
||||
CUtils::PrintMessage("");
|
||||
} while (CUtils::GetBoolInput("Would you like to add another server for this IRC network?", false));
|
||||
vsLines.push_back("\t\tServer = " + sHost + ((bSSL) ? " +" : " ") + CString(uServerPort) + " " + sPass);
|
||||
|
||||
vsLines.push_back("");
|
||||
CUtils::PrintMessage("");
|
||||
|
||||
Reference in New Issue
Block a user