-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);
-
- }
-
- virtual void OnOper(userrec* user) {
-
- ShowOperMOTD(user);
-
- }
-
- virtual void OnRehash() {
-
- LoadOperMOTD();
-
- }
+/** Handle /OPERMOTD
+ */
+class CommandOpermotd : public Command
+{
+ public:
+ CommandOpermotd (InspIRCd* Instance) : Command(Instance,"OPERMOTD", "o", 0)
+ {
+ this->source = "m_opermotd.so";
+ syntax = "[<servername>]";
+ }