summaryrefslogtreecommitdiff
path: root/src/modules/m_operlog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_operlog.cpp')
-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 4968a8925..195415340 100644
--- a/src/modules/m_operlog.cpp
+++ b/src/modules/m_operlog.cpp
@@ -49,7 +49,7 @@ class ModuleOperLog : public Module
if (!validated)
return 0;
- if ((*user->oper) && (IS_LOCAL(user)) && (user->HasPermission(command)))
+ if ((IS_OPER(user)) && (IS_LOCAL(user)) && (user->HasPermission(command)))
{
command_t* thiscommand = ServerInstance->Parser->GetHandler(command);
if ((thiscommand) && (thiscommand->flags_needed = 'o'))