diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2019-04-02 20:46:56 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-04-02 20:46:56 +0200 |
commit | 32d63857a0f7f00fc462f9069e32f22d803985fe (patch) | |
tree | 7edcb8026c74680617b90f7facef929d27577324 /wee_slack.py | |
parent | 55ac43c0254ec6b1fdad6841104594f0645aaea1 (diff) | |
download | wee-slack-32d63857a0f7f00fc462f9069e32f22d803985fe.tar.gz |
Keep text directly after @channel/group/here when linkifying
Previously, when writing e.g. `@channel: test` the colon would be lost.
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index dd79234..fbde84e 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2970,7 +2970,7 @@ def linkify_text(message, team, channel): if targets and targets.groups()[0] == '@': named = targets.groups() if named[1] in ["group", "channel", "here"]: - message[item[0]] = "<!{}>".format(named[1]) + message[item[0]] = "<!{}>{}".format(named[1], named[2]) else: try: if usernames[named[1]]: |