diff options
author | David Vo <auscompgeek@users.noreply.github.com> | 2017-07-29 11:32:17 +1000 |
---|---|---|
committer | David Vo <auscompgeek@users.noreply.github.com> | 2017-09-27 17:09:23 +1000 |
commit | 371efb265cdaf532b54ea807c036b34cc2a5bcdb (patch) | |
tree | a33382968642fa5ed1eb7998f971ff925dc34359 /wee_slack.py | |
parent | 2c7eb4131e73a86cab6bcb4821e5ee64cedd260d (diff) | |
download | wee-slack-371efb265cdaf532b54ea807c036b34cc2a5bcdb.tar.gz |
Give MPDMs a short buffer name prefix of @
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/wee_slack.py b/wee_slack.py index 01aa5a2..1e777fc 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1684,13 +1684,10 @@ class SlackMPDMChannel(SlackChannel): def formatted_name(self, style="default", typing=False, **kwargs): adjusted_name = self.adjust_name(self.slack_name) - if config.channel_name_typing_indicator: - if not typing: - prepend = "#" - else: - prepend = ">" + if typing and config.channel_name_typing_indicator: + prepend = ">" else: - prepend = "#" + prepend = "@" select = { "default": adjusted_name, "sidebar": prepend + adjusted_name, |