From: brain Date: Fri, 16 Jun 2006 12:12:46 +0000 (+0000) Subject: Now only logs commands from local opers, that are oper commands they have permission... X-Git-Tag: v2.0.23~8164 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=38c970bc5388fa1357b493f2dd0bfaaa9e8ac539;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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++)