Skip to content

Commit

Permalink
support @ character in channel location as well when sending to a use…
Browse files Browse the repository at this point in the history
…r; refs #18
  • Loading branch information
caronc committed Jun 6, 2017
1 parent bb88465 commit a7004d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Notify/pnotify/NotifySlack.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ def _notify(self, title, body, notify_type, **kwargs):
if len(channel) > 1 and channel[0] == '+':
# Treat as encoded id if prefixed with a +
_channel = channel[1:]
elif len(channel) > 1 and channel[0] == '@':
# Treat @ value 'as is'
_channel = channel
else:
# Prefix with channel hash tag
_channel = '#%s' % channel
Expand Down

0 comments on commit a7004d8

Please sign in to comment.