aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-07-23 08:26:14 -0700
committerRyan Huber <rhuber@gmail.com>2015-07-23 08:26:14 -0700
commitffe8c27d7a64188b3ab4bfe30f7d8f1891284255 (patch)
treed328c86e8f8a3f52127e33ca072cac6dabc3067b /wee_slack.py
parent25ff21e1e5a14badf92f817d9b3b188826b78de7 (diff)
downloadwee-slack-ffe8c27d7a64188b3ab4bfe30f7d8f1891284255.tar.gz
add @here notification
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 1b00d68..b5210b9 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -441,7 +441,7 @@ class Channel(object):
for item in enumerate(message):
if item[1].startswith('@') and len(item[1]) > 1:
named = re.match('.*[@#](\w+)(\W*)', item[1]).groups()
- if named[0] in ["group", "channel"]:
+ 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])