]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_opermotd.cpp
Added some missing parameter checking in m_swhois
[user/henk/code/inspircd.git] / src / modules / m_opermotd.cpp
index f08b287bdee4b65f42f661137e05c435f130e73e..55608dcb8ccddfa9891e131350443cca52c4fae3 100644 (file)
  * ---------------------------------------------------
  */
 
-#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;
@@ -115,24 +113,4 @@ class ModuleOpermotd : public Module
        }
 };
 
-class ModuleOpermotdFactory : public ModuleFactory
-{
- public:
-       ModuleOpermotdFactory()
-       {
-       }
-
-       ~ModuleOpermotdFactory()
-       {
-       }
-
-       virtual Module* CreateModule(InspIRCd* Me)
-       {
-               return new ModuleOpermotd(Me);
-       }
-};
-
-extern "C" DllExport void* init_module(void)
-{
-       return new ModuleOpermotdFactory;
-}
+MODULE_INIT(ModuleOpermotd)