- cmd_opermotd* mycommand;
- public:
- ModuleOpermotd(InspIRCd* Me)
- : Module::Module(Me)
- {
-
- mycommand = new cmd_opermotd();
- ServerInstance->AddCommand(mycommand);
- opermotd = new FileReader();
- LoadOperMOTD();
- }
-
- virtual ~ModuleOpermotd()
- {
- }
-
- virtual Version GetVersion()
- {
- return Version(1,0,0,1,VF_VENDOR);
- }
-
- void Implements(char* List)
- {
- List[I_OnRehash] = List[I_OnOper] = 1;
- }
-
- virtual void OnOper(userrec* user, const std::string &opertype)
- {
- ShowOperMOTD(user);
- }