diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-11-13 09:47:40 +0100 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2017-11-13 12:13:14 +0100 |
commit | 378f10c3545f8e3a84c3bd1ac38c393a36a9bb7f (patch) | |
tree | b862db9d95871172895cc3518b73b5d566e57b62 /wee_slack.py | |
parent | 49211f9741a31a44a1bceff0c57ae0286f7a5aa7 (diff) | |
download | wee-slack-378f10c3545f8e3a84c3bd1ac38c393a36a9bb7f.tar.gz |
Allow query with @'es
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 2 |
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) |