Move the check for listeners from main() to CZNC::ParseConfig()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@942 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-02-07 22:22:03 +00:00
parent c6664d5ab9
commit 077b25e77d
2 changed files with 6 additions and 7 deletions
+6 -1
View File
@@ -1235,11 +1235,16 @@ bool CZNC::ParseConfig(const CString& sConfig) {
File.Close();
if (!m_msUsers.size()) {
if (m_msUsers.size() == 0) {
CUtils::PrintError("You must define at least one user in your config.");
return false;
}
if (m_vpListeners.size() == 0) {
CUtils::PrintError("You must supply at least one listen port in your config.");
return false;
}
return true;
}