]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_restrictmsg.cpp
and a little tweak to remote MOTD too.
[user/henk/code/inspircd.git] / src / modules / m_restrictmsg.cpp
index ce62296acb89d676616a2583a4fed841ae363210..0f4379030078ce4b8a54a0e5372d375e0b0a4d85 100644 (file)
  * ---------------------------------------------------
  */
 
-#include <stdio.h>
-#include <string>
-#include <vector>
+#include "inspircd.h"
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
 
-#include "inspircd.h"
-
 /* $ModDesc: Forbids users from messaging each other. Users may still message opers and opers may message other opers. */
 
 
@@ -29,7 +25,7 @@ class ModuleRestrictMsg : public Module
  public:
  
        ModuleRestrictMsg(InspIRCd* Me)
-               : Module::Module(Me)
+               : Module(Me)
        {
                
        }
@@ -96,7 +92,7 @@ class ModuleRestrictMsgFactory : public ModuleFactory
 };
 
 
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
 {
        return new ModuleRestrictMsgFactory;
 }