From 040cdb13e45ece886cf8392937ba61ef39c1f497 Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 14 Feb 2010 18:34:35 +0000 Subject: Remove unused exports; counting is not for programmers git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12457 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/template/main.mk | 2 +- src/modules/extra/m_ldapauth.cpp | 6 +++++- 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); } -- cgit v1.2.3