mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Patch ZNC core for more control over singleton...
This commit is contained in:
+4
-1
@@ -193,6 +193,8 @@ int main(int argc, char** argv) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
CZNC::CreateInstance();
|
||||
|
||||
CZNC* pZNC = &CZNC::Get();
|
||||
pZNC->InitDirs(((argc) ? argv[0] : ""), sDataDir);
|
||||
|
||||
@@ -264,7 +266,8 @@ int main(int argc, char** argv) {
|
||||
/* Fall through to normal bootup */
|
||||
}
|
||||
|
||||
if (!pZNC->ParseConfig(sConfig)) {
|
||||
CString sConfigError;
|
||||
if (!pZNC->ParseConfig(sConfig, sConfigError)) {
|
||||
CUtils::PrintError("Unrecoverable config error.");
|
||||
delete pZNC;
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user