summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--make/template/main.mk2
-rw-r--r--src/modules/extra/m_ldapauth.cpp6
2 files changed, 6 insertions, 2 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index 4193102bf..9852f8919 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -87,7 +87,7 @@ CXXFLAGS += -Iinclude
@ENDIF
@DO_EXPORT RUNCC CXXFLAGS CC LDLIBS PICLDFLAGS VERBOSE SOCKETENGINE CORELDFLAGS PURE_STATIC
-@DO_EXPORT BASE CONPATH MODPATH BINPATH SOURCEPATH BUILDPATH INSTUID
+@DO_EXPORT SOURCEPATH BUILDPATH
# Default target
TARGET = all
diff --git a/src/modules/extra/m_ldapauth.cpp b/src/modules/extra/m_ldapauth.cpp
index 75ed94cee..0b3dbb174 100644
--- a/src/modules/extra/m_ldapauth.cpp
+++ b/src/modules/extra/m_ldapauth.cpp
@@ -50,8 +50,12 @@ public:
ModuleLDAPAuth() : ldapAuthed("ldapauth", this)
{
conn = NULL;
+ }
+
+ void init()
+ {
Implementation eventlist[] = { I_OnCheckReady, I_OnRehash, I_OnUserRegister };
- ServerInstance->Modules->Attach(eventlist, this, 4);
+ ServerInstance->Modules->Attach(eventlist, this, 3);
OnRehash(NULL);
}