mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user