Fix self-nick color in messages
@@ -2009,8 +2009,7 @@ class SlackMessage(object):
name_plain = ""
if 'user' in self.message_json:
if self.message_json['user'] == self.team.myidentifier:
- name = self.team.users[self.team.myidentifier].name
- name_plain = self.team.users[self.team.myidentifier].name
+ u = self.team.users[self.team.myidentifier]
elif self.message_json['user'] in self.team.users:
u = self.team.users[self.message_json['user']]
name = "{}".format(u.formatted_name())
