]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_testclient.cpp
Fixed ssl clients on trunk. The problem peavey was having was that before ReadBuffer...
[user/henk/code/inspircd.git] / src / modules / extra / m_testclient.cpp
index 20fe6acb56b044c854eae3382a01ceb58542620a..da0d36df837d7c5409079a367750677a5c375077 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:
@@ -33,7 +41,7 @@ public:
        
        virtual void OnBackgroundTimer(time_t foo)
        {
-               Module* target = ServerInstance->FindFeature("SQL");
+               Module* target = ServerInstance->Modules->FindFeature("SQL");
                
                if(target)
                {
@@ -98,25 +106,4 @@ public:
        }       
 };
 
-class ModuleTestClientFactory : public ModuleFactory
-{
- public:
-       ModuleTestClientFactory()
-       {
-       }
-       
-       ~ModuleTestClientFactory()
-       {
-       }
-       
-       virtual Module * CreateModule(InspIRCd* Me)
-       {
-               return new ModuleTestClient(Me);
-       }
-};
-
-
-extern "C" void * init_module( void )
-{
-       return new ModuleTestClientFactory;
-}
+MODULE_INIT(ModuleTestClient);