summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-07 20:12:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-07 20:12:24 +0000
commit1ff199172d2fd4fa8e7f29dbffd10c684e25e3a9 (patch)
tree7af12cf8f4bf7072d676db294196d065f084f76d /src/modules
parent8a21bfcb21094e4ca8440c37dec4a5df3e5bddc7 (diff)
Added some hax :( to prevent invalid symbols. It seems that instead of returning NULL, its setting a pointer to -1
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4770 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_devoice.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_devoice.cpp b/src/modules/m_devoice.cpp
index 55b6abef7..713dc2788 100644
--- a/src/modules/m_devoice.cpp
+++ b/src/modules/m_devoice.cpp
@@ -26,6 +26,7 @@ using namespace std;
#include <stdio.h>
#include "users.h"
#include "channels.h"
+#include "helperfuncs.h"
#include "modules.h"
static Server *Srv;
@@ -62,6 +63,7 @@ class ModuleDeVoice : public Module
public:
ModuleDeVoice(Server* Me) : Module::Module(Me)
{
+ log(DEBUG,"ModuleDeVoice constructor");
Srv = Me;
mycommand = new cmd_devoice();
Srv->AddCommand(mycommand);
@@ -91,13 +93,14 @@ class ModuleDeVoiceFactory : public ModuleFactory
virtual Module * CreateModule(Server* Me)
{
+ log(DEBUG,"ModuleDevoiceFactory::CreateModule()");
return new ModuleDeVoice(Me);
}
};
-extern "C" void * module_init( void )
+extern "C" void * crud_u_like( void )
{
return new ModuleDeVoiceFactory;
}