diff options
author | Tollef Fog Heen <tfheen@err.no> | 2017-07-21 16:19:29 +0200 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2017-07-21 16:19:29 +0200 |
commit | 8aaf1d87b5b1583678904c63447787cf10c1aaa9 (patch) | |
tree | 4a0cf1cc8fbb5a55b00e9c38be62a22c3c77a449 /wee_slack.py | |
parent | cf75036c2e570e5055022425ffcb217500af0003 (diff) | |
download | wee-slack-8aaf1d87b5b1583678904c63447787cf10c1aaa9.tar.gz |
Handle /msg * foo correctly
Send * to the current channel.
Fixes: #191
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 8b75905..5518ce3 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2833,7 +2833,10 @@ def msg_command_cb(data, current_buffer, args): dbg("msg_command_cb") aargs = args.split(None, 2) who = aargs[1] - command_talk(data, current_buffer, who) + if who == "*": + who = EVENTROUTER.weechat_controller.buffers[current_buffer].slack_name + else: + command_talk(data, current_buffer, who) if len(aargs) > 2: message = aargs[2] |