From be79b6807e212f8d3c3bff878985905664f5b15d Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Wed, 5 Nov 2014 11:45:25 -0800 Subject: setting localvar type properly should fix --- wee_slack.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wee_slack.py') 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)) -- cgit