summaryrefslogtreecommitdiff
path: root/src/dynamic.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 22:40:57 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 22:40:57 +0000
commitf9636a2eff46f6829bf9e01c711ab1ba45a7d50a (patch)
tree4fd9dc8529e9e0adbd5acb47b5fa0f960aef195c /src/dynamic.cpp
parent24b1fbeec8e61e9636daaf606778c324d3ae3042 (diff)
So much stuff changed in this one, i forgot most of it.
Oh yeah, main thing is ModeHandler and ModeWatcher classes now take an InspIRCd* to their constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4858 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dynamic.cpp')
-rw-r--r--src/dynamic.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dynamic.cpp b/src/dynamic.cpp
index c75371a39..23e1e3267 100644
--- a/src/dynamic.cpp
+++ b/src/dynamic.cpp
@@ -29,13 +29,12 @@ using namespace std;
#include "inspstring.h"
#include "helperfuncs.h"
+#include "inspircd.h"
#include <unistd.h>
#include <sys/types.h>
#include <stdio.h>
-extern InspIRCd* ServerInstance;
-
-DLLManager::DLLManager(const char *fname)
+DLLManager::DLLManager(InspIRCd* ServerInstance, const char *fname)
{
err = NULL;
@@ -183,7 +182,7 @@ bool DLLManager::GetSymbol(void** v, const char* sym_name)
#endif
-DLLFactoryBase::DLLFactoryBase(const char* fname, const char* symbol) : DLLManager(fname)
+DLLFactoryBase::DLLFactoryBase(InspIRCd* Instance, const char* fname, const char* symbol) : DLLManager(Instance, fname)
{
// try get the factory function if there is no error yet
factory_func = 0;