]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_operlog.cpp
Move options vlaues netbuffersize, maxwho, maxconn, softlimit, quietbursts, nouserdns...
[user/henk/code/inspircd.git] / src / modules / m_operlog.cpp
index 02c6a30dd59fe76aa688d5e53fae6350219b06ca..aa7923be9d000bd1657cf4ddafd94ea3eb8f8ea0 100644 (file)
@@ -33,11 +33,11 @@ class ModuleOperLog : public Module
  
        virtual Version GetVersion()
        {
-               return Version(1,1,0,0,VF_VENDOR,API_VERSION);
+               return Version(1,2,0,0,VF_VENDOR,API_VERSION);
        }
  
 
-       virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, User *user, bool validated, const std::string &original_line)
+       virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line)
        {
                /* If the command doesnt appear to be valid, we dont want to mess with it. */
                if (!validated)
@@ -52,7 +52,7 @@ class ModuleOperLog : public Module
                                for (int j = 0; j < pcnt; j++)
                                        plist.append(std::string(" ")+std::string(parameters[j]));
 
-                               ServerInstance->Log(DEFAULT,"OPERLOG: [%s!%s@%s] %s%s",user->nick,user->ident,user->host,command.c_str(),plist.c_str());
+                               ServerInstance->Logs->Log("m_operlog",DEFAULT,"OPERLOG: [%s!%s@%s] %s%s",user->nick,user->ident,user->host,command.c_str(),plist.c_str());
                        }
                }