mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user