- cmd_opermotd* mycommand;
- public:
- ModuleOpermotd(Server* Me)
- : Module::Module(Me)
- {
- Srv = Me;
- mycommand = new cmd_opermotd();
- Srv->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);
- }