diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-02-04 19:34:29 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-02-04 19:34:29 -0800 |
commit | 3770e91c8943acf965502397d916ff25ea719c53 (patch) | |
tree | ecb243999df293533b010748f318f708bbaf5a08 /wee_slack.py | |
parent | a69224e10f205003f0bded5f990a8b8372d853b2 (diff) | |
download | wee-slack-3770e91c8943acf965502397d916ff25ea719c53.tar.gz |
threads finally
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index 6d643a2..5c63891 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2083,6 +2083,12 @@ def command_nodistractions(current_buffer, args): # config.distracting_channels.pop(config.distracting_channels.index(channel)) # save_distracting_channels() +def label_command_cb(data, current_buffer, args): + channel = EVENTROUTER.weechat_controller.buffers.get(current_buffer) + if channel and channel.type == 'thread': + aargs = args.split(None, 2) + new_name = " +" + aargs[1] + w.buffer_set(channel.channel_buffer, "short_name", new_name) def command_p(current_buffer, args): w.prnt("", "{}".format(eval(args))) |