From 0d0c546214db0ad22b9b3df32743bbda9a311f59 Mon Sep 17 00:00:00 2001 From: prozacx Date: Mon, 2 May 2005 05:20:29 +0000 Subject: [PATCH] Added some output to tell user how to connect git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@228 726aef4b-f618-498e-8847-2d620e286838 --- znc.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/znc.cpp b/znc.cpp index e674be32..3b659302 100644 --- a/znc.cpp +++ b/znc.cpp @@ -250,7 +250,7 @@ string CZNC::GetConfigPath(const string& sConfigFile) { } bool CZNC::WriteNewConfig(const string& sConfig) { - string sAnswer; + string sAnswer, sUser; vector vsLines; bool bAnswer = false; @@ -275,7 +275,7 @@ bool CZNC::WriteNewConfig(const string& sConfig) { do { vsLines.push_back(""); - string sUser, sNick; + string sNick; do { CUtils::GetInput("Username", sUser, "", "AlphaNumeric"); } while (!CUser::IsValidUserName(sUser)); @@ -368,6 +368,16 @@ bool CZNC::WriteNewConfig(const string& sConfig) { File.Close(); CUtils::PrintStatus(true); + + 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 " + CUtils::ToString(uPort) + " " + sUser + ":", true); + CUtils::PrintMessage(""); + return true; }