virtual ~ModuleRemove()
{
- delete mycommand;
- delete mycommand2;
}
virtual Version GetVersion()
{
- return Version(1,1,1,0,VF_VENDOR,API_VERSION);
+ return Version(1, 1, 1, 0, VF_COMMON | VF_VENDOR, API_VERSION);
}
};
-// stuff down here is the module-factory stuff. For basic modules you can ignore this.
-
-class ModuleRemoveFactory : public ModuleFactory
-{
- public:
- ModuleRemoveFactory()
- {
- }
-
- ~ModuleRemoveFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleRemove(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleRemoveFactory;
-}
+MODULE_INIT(ModuleRemove)