aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-04-02 20:46:56 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-04-02 20:46:56 +0200
commit32d63857a0f7f00fc462f9069e32f22d803985fe (patch)
tree7edcb8026c74680617b90f7facef929d27577324 /wee_slack.py
parent55ac43c0254ec6b1fdad6841104594f0645aaea1 (diff)
downloadwee-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.py2
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]]: