X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fdynamic.cpp;h=c75371a39b33cdbf73d3c1684dab430ea4a9e0fa;hb=eb28eaea35d9d109a0b7b890de9d957d562da675;hp=d38405d48f5507899091bb21732200a44ea98d78;hpb=923586e54c005780edcc5c427bb4698caf16bcf0;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/dynamic.cpp b/src/dynamic.cpp index d38405d48..c75371a39 100644 --- a/src/dynamic.cpp +++ b/src/dynamic.cpp @@ -33,7 +33,7 @@ using namespace std; #include #include -extern ServerConfig* Config; +extern InspIRCd* ServerInstance; DLLManager::DLLManager(const char *fname) { @@ -73,7 +73,7 @@ DLLManager::DLLManager(const char *fname) log(DEBUG,"Opened module file %s",fname); char tmpfile_template[255]; char buffer[65536]; - snprintf(tmpfile_template, 255, "%s/inspircd_file.so.%d.XXXXXXXXXX",Config->TempDir,getpid()); + snprintf(tmpfile_template, 255, "%s/inspircd_file.so.%d.XXXXXXXXXX",ServerInstance->Config->TempDir,getpid()); int fd = mkstemp(tmpfile_template); if (fd == -1) { @@ -115,7 +115,7 @@ DLLManager::DLLManager(const char *fname) log(DEBUG,"Finished loading '%s': %0x",tmpfile_template, h); // We can delete the tempfile once it's loaded, leaving just the inode. - if (!err && !Config->debugging) + if (!err && !ServerInstance->Config->debugging) { log(DEBUG,"Deleteting %s",tmpfile_template); if (unlink(tmpfile_template) == -1)