diff options
author | Tollef Fog Heen <tfheen@err.no> | 2015-12-21 22:20:38 +0100 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2015-12-21 22:20:38 +0100 |
commit | be3f3f6cfce847bd5990e8ef6f56bcc85e3a283a (patch) | |
tree | 4d9756d548046d0db9d13ada273e517609df3fa0 /wee_slack.py | |
parent | fb8e8c0271c067e5992a07cef7301963ad250ae9 (diff) | |
download | wee-slack-be3f3f6cfce847bd5990e8ef6f56bcc85e3a283a.tar.gz |
Use <@123ABC> rather than <@123ABC|foo> for outgoing nicks
The web client doesn't handle nicks on the form <@123ABC|foo.bar>
correctly, they're just treated as text. <@123ABC> is handled
correctly.
Fixes: #119
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 4c24af4..c8ccf5b 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -508,7 +508,7 @@ class Channel(object): if named[0] in ["group", "channel", "here"]: message[item[0]] = "<!{}>".format(named[0]) if self.server.users.find(named[0]): - message[item[0]] = "<@{}|{}>{}".format(self.server.users.find(named[0]).identifier, named[0], named[1]) + message[item[0]] = "<@{}>{}".format(self.server.users.find(named[0]).identifier, named[1]) if item[1].startswith('#') and self.server.channels.find(item[1]): named = re.match('.*[@#](\w+)(\W*)', item[1]).groups() if self.server.channels.find(named[0]): |