diff options
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index 20133ce..7126fcd 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2124,9 +2124,13 @@ class SlackMessage(object): if (self.message_json.get('subtype') == 'me_message' and not self.message_json['text'].startswith(self.sender)): text = "{} {}".format(self.sender, text) + if (self.message_json.get('subtype') == 'channel_join' and + self.message_json.get('inviter')): + inviter_id = self.message_json.get('inviter') + inviter_nick = unfurl_refs("<@{}>".format(inviter_id)) + text += " by invitation from {}".format(inviter_nick) if len(self.submessages) > 0: - text = "{} {}[ Thread: {} Replies: {} ]".format( - text, + text += " {}[ Thread: {} Replies: {} ]".format( w.color(config.thread_suffix_color), self.hash or self.ts, len(self.submessages)) |