]> 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 670533dc37542a59c12dc39672e196f7a2544c2d..da0d36df837d7c5409079a367750677a5c375077 100644 (file)
@@ -41,7 +41,7 @@ public:
        
        virtual void OnBackgroundTimer(time_t foo)
        {
-               Module* target = ServerInstance->FindFeature("SQL");
+               Module* target = ServerInstance->Modules->FindFeature("SQL");
                
                if(target)
                {
@@ -106,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);