* ---------------------------------------------------
*/
+#include "inspircd.h"
#include "users.h"
#include "channels.h"
#include "modules.h"
-#include "inspircd.h"
#include "httpclient.h"
/* $ModDep: httpclient.h */
std::string nick = user->nick;
ServerInstance->Log(DEBUG,"User " + nick + " joined " + chan);
- Module* target = ServerInstance->FindModule("m_http_client.so");
+ Module* target = ServerInstance->Modules->Find("m_http_client.so");
if(target)
{
HTTPClientRequest req(ServerInstance, this, target, "http://znc.in/~psychon");
};
-class MyModuleFactory : public ModuleFactory
-{
-public:
- MyModuleFactory()
- {
- }
-
- ~MyModuleFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new MyModule(Me);
- }
-
-};
-
-extern "C" void * init_module( void )
-{
- return new MyModuleFactory;
-}
+MODULE_INIT(MyModule);