diff options
author | David Vo <auscompgeek@users.noreply.github.com> | 2017-10-06 23:55:02 +1100 |
---|---|---|
committer | David Vo <auscompgeek@users.noreply.github.com> | 2017-10-06 23:55:02 +1100 |
commit | 5df096f3e778f655e186b405a42e78324d247340 (patch) | |
tree | a58da8780762d4815f216612f9b2473202fa281b | |
parent | f61e1b8f8540311a00513c7dfc07ff89cf872958 (diff) | |
download | wee-slack-5df096f3e778f655e186b405a42e78324d247340.tar.gz |
Switch to thread buffer on open if configured
Obeys the switch_buffer_on_join setting on /thread.
-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 42347b0..6f756b4 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2981,6 +2981,8 @@ def thread_command_callback(data, current_buffer, args): pm.thread_channel = tc tc.open() # tc.create_buffer() + if config.switch_buffer_on_join: + w.buffer_set(tc.channel_buffer, "display", "1") return w.WEECHAT_RC_OK_EAT elif args[0] == '/reply': count = int(args[1]) |