Commit a2da5901 authored by Benjamin Sherman's avatar Benjamin Sherman

Reference correct variable in logging.py

Resolves issue #81


(cherry picked from commit 89fd10d2)
parent 7e03a247
......@@ -31,7 +31,7 @@ async def log_message(client, msg, action_taken=""):
async def log_message_delete(client, msg):
if msg.cached_message:
if msg.author.bot:
if msg.cached_message.author.bot:
return
await log_message(client, msg.cached_message, "(DELETED)")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment