diff options
author | Ryan Huber <rhuber@gmail.com> | 2014-11-05 11:45:25 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2014-11-05 11:45:25 -0800 |
commit | be79b6807e212f8d3c3bff878985905664f5b15d (patch) | |
tree | 86841427bc9d51caedaae7420af72f5635cc7fa7 /wee_slack.py | |
parent | 3d9a92b1beb42626aa3433b3f8680f075c53a676 (diff) | |
download | wee-slack-be79b6807e212f8d3c3bff878985905664f5b15d.tar.gz |
setting localvar type properly should fix
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index a9e62c1..05607bb 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -299,6 +299,10 @@ class Channel(SlackThing): self.channel_buffer = channel_buffer else: self.channel_buffer = w.buffer_new("%s.%s" % (self.server.domain, self.name), "buffer_input_cb", self.name, "", "") + if self.type == "im": + w.buffer_set(self.channel_buffer, "localvar_set_type", 'private') + else: + w.buffer_set(self.channel_buffer, "localvar_set_type", 'channel') w.buffer_set(self.channel_buffer, "short_name", 'loading..') def attach_buffer(self): channel_buffer = w.buffer_search("", "%s.%s" % (self.server.domain, self.name)) |