aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2017-11-13 09:47:40 +0100
committerTollef Fog Heen <tfheen@err.no>2017-11-13 12:13:14 +0100
commit378f10c3545f8e3a84c3bd1ac38c393a36a9bb7f (patch)
treeb862db9d95871172895cc3518b73b5d566e57b62
parent49211f9741a31a44a1bceff0c57ae0286f7a5aa7 (diff)
downloadwee-slack-378f10c3545f8e3a84c3bd1ac38c393a36a9bb7f.tar.gz
Allow query with @'es
-rw-r--r--wee_slack.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 274e05e..82e15d5 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2992,6 +2992,8 @@ def command_talk(data, current_buffer, args):
c = team.get_channel_map()
if channel_name not in c:
u = team.get_username_map()
+ if channel_name.startswith('@'):
+ channel_name = channel_name[1:]
if channel_name in u:
s = SlackRequest(team.token, "im.open", {"user": u[channel_name]}, team_hash=team.team_hash)
EVENTROUTER.receive(s)