]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operlog.cpp
and a little tweak to remote MOTD too.
[user/henk/code/inspircd.git] / src / modules / m_operlog.cpp
index 4968a892557b9d5128ca43d5aebd0ff9f272cf57..c2524fb51d3df4a9e8b96cf5db327aedc5d18b75 100644 (file)
  *
  * ---------------------------------------------------
  */
+
+#include "inspircd.h" 
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "inspircd.h"
-#include <vector>
 
 /* $ModDesc: A module which logs all oper commands to the ircd log at default loglevel. */
 
@@ -24,7 +23,7 @@ class ModuleOperLog : public Module
  private:
         
  public:
-       ModuleOperLog(InspIRCd* Me) : Module::Module(Me)
+       ModuleOperLog(InspIRCd* Me) : Module(Me)
        {
                
        }
@@ -49,7 +48,7 @@ class ModuleOperLog : public Module
                if (!validated)
                        return 0;
  
-               if ((*user->oper) && (IS_LOCAL(user)) && (user->HasPermission(command)))
+               if ((IS_OPER(user)) && (IS_LOCAL(user)) && (user->HasPermission(command)))
                {
                        command_t* thiscommand = ServerInstance->Parser->GetHandler(command);
                        if ((thiscommand) && (thiscommand->flags_needed = 'o'))
@@ -94,7 +93,7 @@ class ModuleOperLogFactory : public ModuleFactory
  
 };
  
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
 {
        return new ModuleOperLogFactory;
 }