diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 11:33:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 11:33:10 +0000 |
commit | 09afa5085614e0224a296abd082fce205003c3fe (patch) | |
tree | 444d54deea5f10e3045e0a8a016f9623499f513e /src/dynamic.cpp | |
parent | 6d4128715da39b1e097642a64ee0bd40586d9a38 (diff) |
ServerConfig extern moved into class InspIRCd
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4808 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dynamic.cpp')
-rw-r--r-- | src/dynamic.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 <sys/types.h> #include <stdio.h> -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) |