Skip to content

Commit

Permalink
[V3 ModLog] Fix [p]reason when the modlog case has no moderator (#1604)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobotimus authored May 13, 2018
1 parent 28bbe9c commit 119ba7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redbot/cogs/modlog/modlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def reason(self, ctx: commands.Context, case: int, *, reason: str = ""):
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:
Expand Down

0 comments on commit 119ba7e

Please sign in to comment.