-class ModuleOpermotd : public Module {
-
- public:
-
- ModuleOpermotd() {
-
- Srv = new Server;
-
- Srv->AddCommand("OPERMOTD",do_opermotd,'o',0,"m_opermotd.so");
-
- opermotd = new FileReader();
- LoadOperMOTD();
-
- }
-
- virtual ~ModuleOpermotd() {
-
- delete Srv;
-
- }
-
- virtual Version GetVersion() {
-
- return Version(1,0,0,1,VF_VENDOR);
-
- }
-
- virtual void OnOper(userrec* user) {
-
- ShowOperMOTD(user);
-
- }
-
- virtual void OnRehash() {
-
- LoadOperMOTD();
-
- }
+/** Handle /OPERMOTD
+ */
+class CommandOpermotd : public Command
+{
+ public:
+ CommandOpermotd(Module* Creator) : Command(Creator,"OPERMOTD", 0)
+ {
+ flags_needed = 'o'; syntax = "[<servername>]";
+ }