* ---------------------------------------------------
*/
-#include <stdio.h>
+#include "inspircd.h"
#include "users.h"
#include "channels.h"
#include "modules.h"
-#include "inspircd.h"
-
/* $ModDesc: Shows a message to opers after oper-up, adds /opermotd */
static FileReader* opermotd;
}
ModuleOpermotd(InspIRCd* Me)
- : Module::Module(Me)
+ : Module(Me)
{
opermotd = NULL;
mycommand = new cmd_opermotd(ServerInstance);
}
};
-class ModuleOpermotdFactory : public ModuleFactory
-{
- public:
- ModuleOpermotdFactory()
- {
- }
-
- ~ModuleOpermotdFactory()
- {
- }
-
- virtual Module* CreateModule(InspIRCd* Me)
- {
- return new ModuleOpermotd(Me);
- }
-};
-
-extern "C" void* init_module(void)
-{
- return new ModuleOpermotdFactory;
-}
+MODULE_INIT(ModuleOpermotd)