]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_silence.cpp
and a little tweak to remote MOTD too.
[user/henk/code/inspircd.git] / src / modules / m_silence.cpp
index 42b7f96e9ef9df79dacffc6f7f8ff441137eed31..8d8ed43c70d3639a1cfada666ddbfefa501ec424 100644 (file)
  * ---------------------------------------------------
  */
 
-#include <stdio.h>
-#include <string>
-#include <vector>
+#include "inspircd.h"
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
 #include "hashcomp.h"
-#include "inspircd.h"
 #include "wildcard.h"
 
 /* $ModDesc: Provides support for the /SILENCE command */
@@ -136,7 +133,7 @@ class ModuleSilence : public Module
  public:
  
        ModuleSilence(InspIRCd* Me)
-               : Module::Module(Me), maxsilence(32)
+               : Module(Me), maxsilence(32)
        {
                OnRehash(NULL, "");
                mycommand = new cmd_silence(ServerInstance, maxsilence);
@@ -235,7 +232,7 @@ class ModuleSilenceFactory : public ModuleFactory
 };
 
 
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
 {
        return new ModuleSilenceFactory;
 }