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
View File
@@ -190,12 +190,6 @@ int main(int argc, char** argv) {
return 1;
}
if (!pZNC->GetListeners().size()) {
CUtils::PrintError("You must supply at least one Listen port in your config.");
delete pZNC;
return 1;
}
if (!pZNC->OnBoot()) {
CUtils::PrintError("Exiting due to module boot errors.");
delete pZNC;