]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nicklock.cpp
and a little tweak to remote MOTD too.
[user/henk/code/inspircd.git] / src / modules / m_nicklock.cpp
index 38208c724d70dd9b9b558804d6f5b7273e0af952..071eda8ee29b34fc8d3800edafeefe6a3fa82d48 100644 (file)
  * ---------------------------------------------------
  */
 
-#include <stdio.h>
-#include <string>
+#include "inspircd.h"
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-
 #include "hashcomp.h"
-#include "inspircd.h"
 
 /* $ModDesc: Provides the NICKLOCK command, allows an oper to chage a users nick and lock them to it until they quit */
 
-
 /** Handle /NICKLOCK
  */
 class cmd_nicklock : public command_t
@@ -57,7 +53,7 @@ class cmd_nicklock : public command_t
                // check nick is valid
                if (!ServerInstance->IsNick(parameters[1]))
                {
-                       return CMD_FAILURE
+                       return CMD_FAILURE;
                }
 
                // let others know
@@ -112,7 +108,7 @@ class ModuleNickLock : public Module
        char* n;
  public:
        ModuleNickLock(InspIRCd* Me)
-               : Module::Module(Me)
+               : Module(Me)
        {
                
                cmd1 = new cmd_nicklock(ServerInstance);
@@ -181,7 +177,7 @@ class ModuleNickLockFactory : public ModuleFactory
 };
 
 
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
 {
        return new ModuleNickLockFactory;
 }