From 16be1817d5f836673bf3c0b332b821c25c7018f6 Mon Sep 17 00:00:00 2001 From: psychon Date: Sun, 7 Nov 2010 13:42:48 +0000 Subject: [PATCH] Improve the tip at the end of --makeconf This now also tries to mention the needed ssl flag in the irc client and the big change is that this prints the "address" of the web interface! git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2176 726aef4b-f618-498e-8847-2d620e286838 --- znc.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/znc.cpp b/znc.cpp index 24c0d2e3..afd4beb2 100644 --- a/znc.cpp +++ b/znc.cpp @@ -942,13 +942,16 @@ bool CZNC::WriteNewConfig(const CString& sConfigFile) { cout << endl << "----------------------------------------------------------------------------" << endl << endl; } + const CString sProtocol(sSSL.empty() ? "http" : "https"); CUtils::PrintMessage(""); CUtils::PrintMessage("To connect to this znc you need to connect to it as your irc server", true); CUtils::PrintMessage("using the port that you supplied. You have to supply your login info", true); CUtils::PrintMessage("as the irc server password like so... user:pass.", true); CUtils::PrintMessage(""); CUtils::PrintMessage("Try something like this in your IRC client...", true); - CUtils::PrintMessage("/server " + CString(uListenPort) + " " + sUser + ":", true); + CUtils::PrintMessage("/server " + sSSL + CString(uListenPort) + " " + sUser + ":", true); + CUtils::PrintMessage("And this in your browser...", true); + CUtils::PrintMessage(sProtocol + "://:" + CString(uListenPort) + "/", true); CUtils::PrintMessage(""); m_LockFile.UnLock();