]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_testclient.cpp
Warning: Loads of craq logging in here atm. /connect with openssl is broken, gnutls...
[user/henk/code/inspircd.git] / src / modules / extra / m_testclient.cpp
index 20fe6acb56b044c854eae3382a01ceb58542620a..f4e58b7b5969cbee5810b759585c3c129d47ac95 100644 (file)
@@ -1,15 +1,23 @@
-#include <string>
+/*       +------------------------------------+
+ *       | 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"
 #include "configreader.h"
 #include "m_sqlv2.h"
 
-
-
 class ModuleTestClient : public Module
 {
 private:
@@ -98,25 +106,5 @@ public:
        }       
 };
 
-class ModuleTestClientFactory : public ModuleFactory
-{
- public:
-       ModuleTestClientFactory()
-       {
-       }
-       
-       ~ModuleTestClientFactory()
-       {
-       }
-       
-       virtual Module * CreateModule(InspIRCd* Me)
-       {
-               return new ModuleTestClient(Me);
-       }
-};
+MODULE_INIT(ModuleTestClient);
 
-
-extern "C" void * init_module( void )
-{
-       return new ModuleTestClientFactory;
-}