mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Don't fill in znc.conf if no config is passed
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@80 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -20,7 +20,7 @@ void die(int sig) {
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
string sConfig = "znc.conf";
|
||||
string sConfig;
|
||||
|
||||
// initialize ssl, allow client to have compression enabled if desired
|
||||
InitSSL( CT_ZLIB );
|
||||
@@ -47,7 +47,7 @@ int main(int argc, char** argv) {
|
||||
pZNC->InitDirs(((argc) ? argv[0] : ""));
|
||||
|
||||
if (!pZNC->ParseConfig(sConfig)) {
|
||||
cerr << endl << "*** Unrecoverable error while parsing [" << sConfig << "]" << endl;
|
||||
cerr << endl << "*** Unrecoverable error while parsing config." << endl;
|
||||
delete pZNC;
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user