aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorDavid Vo <auscompgeek@users.noreply.github.com>2017-07-28 15:36:40 +1000
committerDavid Vo <auscompgeek@users.noreply.github.com>2017-07-28 15:36:40 +1000
commit010cae50aed793360cbb39aec59f141d8ae1309a (patch)
tree51c3b5b334a5842ba176b9a06b56ab3710b25589 /wee_slack.py
parentc5023198f4adb3e7dcc0111a6798ccfec115adc4 (diff)
downloadwee-slack-010cae50aed793360cbb39aec59f141d8ae1309a.tar.gz
Fix opening thread buffers
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index b974fea..fa99c62 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1768,7 +1768,7 @@ class SlackThreadChannel(object):
self.channel_buffer = w.buffer_new(self.formatted_name(style="long_default"), "buffer_input_callback", "EVENTROUTER", "", "")
self.eventrouter.weechat_controller.register_buffer(self.channel_buffer, self)
w.buffer_set(self.channel_buffer, "localvar_set_type", 'channel')
- w.buffer_set(self.channel_buffer, "localvar_set_nick", self.team.nick)
+ w.buffer_set(self.channel_buffer, "localvar_set_nick", self.parent_message.team.nick)
w.buffer_set(self.channel_buffer, "localvar_set_channel", self.formatted_name())
w.buffer_set(self.channel_buffer, "short_name", self.formatted_name(style="sidebar", enable_color=True))
time_format = w.config_string(w.config_get("weechat.look.buffer_time_format"))