* ---------------------------------------------------
*/
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
#include "inspircd.h"
/* $ModDesc: Povides support for ircu-style services accounts, including chmode +R, etc. */
AChannel_M* m2;
AUser_R* m3;
public:
- ModuleServicesAccount(InspIRCd* Me) : Module::Module(Me)
+ ModuleServicesAccount(InspIRCd* Me) : Module(Me)
{
m1 = new AChannel_R(ServerInstance);
}
};
-
-class ModuleServicesAccountFactory : public ModuleFactory
-{
- public:
- ModuleServicesAccountFactory()
- {
- }
-
- ~ModuleServicesAccountFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleServicesAccount(Me);
- }
-
-};
-
-
-extern "C" void * init_module( void )
-{
- return new ModuleServicesAccountFactory;
-}
+MODULE_INIT(ModuleServicesAccount)