From 1ff199172d2fd4fa8e7f29dbffd10c684e25e3a9 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 7 Aug 2006 20:12:24 +0000 Subject: 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 --- src/modules/m_devoice.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules') 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 #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; } -- cgit v1.2.3