summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-06-16 12:12:46 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-06-16 12:12:46 +0000
commit38c970bc5388fa1357b493f2dd0bfaaa9e8ac539 (patch)
treeb9967a0e880286ce6957c7b55ee2630fa92e2c43 /src
parent1a586eb091095e5d45719f5cd7de3949a94eeea1 (diff)
Now only logs commands from local opers, that are oper commands they have permission to execute
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4015 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_operlog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_operlog.cpp b/src/modules/m_operlog.cpp
index 564ff1018..559b01285 100644
--- a/src/modules/m_operlog.cpp
+++ b/src/modules/m_operlog.cpp
@@ -55,7 +55,7 @@ class ModuleOperLog : public Module
if (!validated)
return 0;
- if (*user->oper)
+ if ((*user->oper) && (IS_LOCAL(user)) && (user->HasPermission(command)))
{
std::string plist = "";
for (int j = 0; j < pcnt; j++)