aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-02-04 19:34:29 -0800
committerRyan Huber <rhuber@gmail.com>2017-02-04 19:34:29 -0800
commit3770e91c8943acf965502397d916ff25ea719c53 (patch)
treeecb243999df293533b010748f318f708bbaf5a08 /wee_slack.py
parenta69224e10f205003f0bded5f990a8b8372d853b2 (diff)
downloadwee-slack-3770e91c8943acf965502397d916ff25ea719c53.tar.gz
threads finally
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
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)))