From 119ba7ef8b1a2b3cb54366ff7fe29f41ac356e63 Mon Sep 17 00:00:00 2001 From: Tobotimus Date: Mon, 14 May 2018 09:24:17 +1000 Subject: [PATCH] [V3 ModLog] Fix [p]reason when the modlog case has no moderator (#1604) --- redbot/cogs/modlog/modlog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/modlog/modlog.py b/redbot/cogs/modlog/modlog.py index c42747a49..970f187ff 100644 --- a/redbot/cogs/modlog/modlog.py +++ b/redbot/cogs/modlog/modlog.py @@ -134,7 +134,7 @@ class ModLog: audit_case = None async for entry in guild.audit_logs(action=audit_type): if entry.target.id == case_before.user.id and \ - entry.user.id == case_before.moderator.id: + entry.action == audit_type: audit_case = entry break if audit_case: