aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wee_slack.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index b697fe3..e20b357 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2846,9 +2846,13 @@ def resolve_ref(ref):
def create_user_status_string(profile):
+ real_name = profile.get("real_name")
status_emoji = profile.get("status_emoji")
status_text = profile.get("status_text")
- return "[{}] {}".format(status_emoji, status_text)
+ if status_emoji or status_text:
+ return "{} | {} {}".format(real_name, status_emoji, status_text)
+ else:
+ return real_name
def create_reaction_string(reactions):