diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 02:25:06 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-05-05 02:25:06 +0000 |
commit | 943aae0168538f7a59f8f6ccabee2568cc3d4ab1 (patch) | |
tree | 3c327a754513e980d6d457bd829ab671f342f51c /src/modules/m_operlog.cpp | |
parent | b817341e2149af163011cce47605ae17b4f67eeb (diff) |
Convert more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9629 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_operlog.cpp')
-rw-r--r-- | src/modules/m_operlog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_operlog.cpp b/src/modules/m_operlog.cpp index aa7923be9..25a3f1203 100644 --- a/src/modules/m_operlog.cpp +++ b/src/modules/m_operlog.cpp @@ -37,7 +37,7 @@ class ModuleOperLog : public Module } - virtual int OnPreCommand(const std::string &command, const char* const* parameters, int pcnt, User *user, bool validated, const std::string &original_line) + virtual int OnPreCommand(const std::string &command, const std::vector<std::string> ¶meters, 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) @@ -49,8 +49,8 @@ class ModuleOperLog : public Module if ((thiscommand) && (thiscommand->flags_needed == 'o')) { std::string plist; - for (int j = 0; j < pcnt; j++) - plist.append(std::string(" ")+std::string(parameters[j])); + for (int j = 0; j < (int)parameters.size(); j++) + plist.append(std::string(" ")+parameters[j]); ServerInstance->Logs->Log("m_operlog",DEFAULT,"OPERLOG: [%s!%s@%s] %s%s",user->nick,user->ident,user->host,command.c_str(),plist.c_str()); } |