aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2015-12-21 22:20:33 +0100
committerTollef Fog Heen <tfheen@err.no>2015-12-21 22:20:33 +0100
commitfb8e8c0271c067e5992a07cef7301963ad250ae9 (patch)
treea0120bc5c1d87280e592d6f0fcacd4d39785f37f /wee_slack.py
parent24b5d143282f9d210b4aea8c9b18f3a65029dea1 (diff)
downloadwee-slack-fb8e8c0271c067e5992a07cef7301963ad250ae9.tar.gz
Allow . in nicks
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 c8d24ee..4c24af4 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -504,7 +504,7 @@ class Channel(object):
message = message.split(' ')
for item in enumerate(message):
if item[1].startswith('@') and len(item[1]) > 1:
- named = re.match('.*[@#](\w+)(\W*)', item[1]).groups()
+ named = re.match('.*[@#]([\w.]+)(\W*)', item[1]).groups()
if named[0] in ["group", "channel", "here"]:
message[item[0]] = "<!{}>".format(named[0])
if self.server.users.find(named[0]):