aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2017-07-28 21:25:49 +0200
committerGitHub <noreply@github.com>2017-07-28 21:25:49 +0200
commit35d508a63bd29a2d99aa2865236d4bec50489dd7 (patch)
tree43eb7f51218aafa275fd75b94458e6ac51323595
parentd1c08ec0999377adb3cf1f0f96e42591fd6e4ce8 (diff)
parent010cae50aed793360cbb39aec59f141d8ae1309a (diff)
downloadwee-slack-35d508a63bd29a2d99aa2865236d4bec50489dd7.tar.gz
Merge pull request #411 from auscompgeek/fix-open-thread
Fix opening thread buffers
-rw-r--r--wee_slack.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index fd627e1..2b2e787 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1772,7 +1772,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"))