]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operlog.cpp
Fix new millisec /map to compile on windows, by ifndef gettimeofday out reverting...
[user/henk/code/inspircd.git] / src / modules / m_operlog.cpp
index c2524fb51d3df4a9e8b96cf5db327aedc5d18b75..9bbdbef25678b141c9ed3bfa8ed844e49fc5bf32 100644 (file)
@@ -53,7 +53,7 @@ class ModuleOperLog : public Module
                        command_t* thiscommand = ServerInstance->Parser->GetHandler(command);
                        if ((thiscommand) && (thiscommand->flags_needed = 'o'))
                        {
-                               std::string plist = "";
+                               std::string plist;
                                for (int j = 0; j < pcnt; j++)
                                        plist.append(std::string(" ")+std::string(parameters[j]));
 
@@ -72,29 +72,4 @@ class ModuleOperLog : public Module
 };
  
  
-/******************************************************************************************************/
-class ModuleOperLogFactory : public ModuleFactory
-{
- public:
-       ModuleOperLogFactory()
-       {
-       }
-       ~ModuleOperLogFactory()
-       {
-       }
-       virtual Module * CreateModule(InspIRCd* Me)
-       {
-               return new ModuleOperLog(Me);
-       }
-};
-extern "C" DllExport void * init_module( void )
-{
-       return new ModuleOperLogFactory;
-}
-
+MODULE_INIT(ModuleOperLog)