]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_lockserv.cpp
and a little tweak to remote MOTD too.
[user/henk/code/inspircd.git] / src / modules / m_lockserv.cpp
index b413c33bcd9d478476489f8a9ca665336975f526..cbc454778d0157195f4fb9b0dbc9e5f6830f133c 100644 (file)
@@ -1,8 +1,20 @@
+/*       +------------------------------------+
+ *       | Inspire Internet Relay Chat Daemon |
+ *       +------------------------------------+
+ *
+ *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ * See: http://www.inspircd.org/wiki/index.php/Credits
+ *
+ * This program is free but copyrighted software; see
+ *            the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#include "inspircd.h"
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "inspircd.h"
-
 
 /* $ModDesc: Allows locking of the server to stop all incoming connections till unlocked again */
 
@@ -71,7 +83,7 @@ private:
        }
 
 public:
-       ModuleLockserv(InspIRCd* Me) : Module::Module(Me)
+       ModuleLockserv(InspIRCd* Me) : Module(Me)
        {
                ResetLocked();
                lockcommand = new cmd_lockserv(ServerInstance, locked);
@@ -90,7 +102,7 @@ public:
                List[I_OnUserRegister] = List[I_OnRehash] = List[I_OnCheckReady] = 1;
        }
 
-       virtual void OnRehash(const std::string &parameter)
+       virtual void OnRehash(userrec* user, const std::string &parameter)
        {
                ResetLocked();
        }
@@ -133,7 +145,7 @@ public:
        }
 };
 
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
 {
        return new ModuleLockservFactory;
 }