Update to latest Csocket and use its new init interface

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1288 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-12-10 15:53:07 +00:00
parent 9bec4b8048
commit c03bd91589
4 changed files with 47 additions and 29 deletions

View File

@@ -26,6 +26,11 @@ namespace
};
CZNC::CZNC() {
if (!InitCsocket()) {
CUtils::PrintError("Failed to initialize Csocket!");
exit(-1);
}
#ifdef _MODULES
m_pModules = new CGlobalModules();
#endif
@@ -68,6 +73,7 @@ CZNC::~CZNC() {
delete m_pModules;
#endif
ShutdownCsocket();
DeletePidFile();
}