From a0aa69e0834d7a1835b602f9e30e6262988ac292 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Sun, 5 Mar 2017 17:47:08 +0100 Subject: [PATCH] [Mod] Show name and discrim in mod-log --- cogs/mod.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cogs/mod.py b/cogs/mod.py index 6537aeb5c..171aadbbe 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -1294,10 +1294,10 @@ class Mod: "modified" : None, "action" : action, "channel" : channel.id if channel else None, - "user" : user.name, + "user" : str(user), "user_id" : user.id, "reason" : reason, - "moderator" : mod.name if mod is not None else None, + "moderator" : str(mod) if mod is not None else None, "moderator_id" : mod.id if mod is not None else None, "amended_by" : None, "amended_id" : None, @@ -1332,12 +1332,12 @@ class Mod: if case["moderator_id"] is not None: if case["moderator_id"] != mod.id: if self.is_admin_or_superior(mod): - case["amended_by"] = mod.name + case["amended_by"] = str(mod) case["amended_id"] = mod.id else: raise UnauthorizedCaseEdit() else: - case["moderator"] = mod.name + case["moderator"] = str(mod) case["moderator_id"] = mod.id if case["reason"]: # Existing reason