diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-17 15:24:09 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-17 15:24:09 +0000 |
commit | b8d63cd639f98e80c766dd8f00406a2170f0e88f (patch) | |
tree | 58111ace7a30baf7906b7080a10364474cc43a00 /src | |
parent | 156d634231fa0c09f85f39bc0b0bbb38b1207acf (diff) |
Fix this (at last) to only log commands which are operonly
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6036 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_operlog.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/modules/m_operlog.cpp b/src/modules/m_operlog.cpp index 0bd6dfc49..4968a8925 100644 --- a/src/modules/m_operlog.cpp +++ b/src/modules/m_operlog.cpp @@ -51,12 +51,15 @@ class ModuleOperLog : public Module if ((*user->oper) && (IS_LOCAL(user)) && (user->HasPermission(command))) { - std::string plist = ""; - for (int j = 0; j < pcnt; j++) + command_t* thiscommand = ServerInstance->Parser->GetHandler(command); + if ((thiscommand) && (thiscommand->flags_needed = 'o')) { - plist.append(std::string(" ")+std::string(parameters[j])); + std::string plist = ""; + 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->Log(DEFAULT,"OPERLOG: [%s!%s@%s] %s%s",user->nick,user->ident,user->host,command.c_str(),plist.c_str()); } return 0; |