aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-06-24 16:49:08 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2020-06-24 16:51:37 +0200
commitd9bbb8d735b089a5d5c5548668ce97c9c088b600 (patch)
tree76b8088992bbda6a3083969c03257a5475006e40 /wee_slack.py
parente215ea2fbc454158661aeed6d386f83d3604bc8a (diff)
downloadwee-slack-d9bbb8d735b089a5d5c5548668ce97c9c088b600.tar.gz
Set localvar type to private for mpdms
Mpdms should behave the same way as dms when it comes to notifications etc., so I think it makes more sense to set type to private than to channel.
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 c2d93a7..d20c29b 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -1957,7 +1957,7 @@ class SlackChannel(SlackChannelCommon):
self.active = True
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)
- if self.type == "im":
+ if self.type in ("im", "mpim"):
w.buffer_set(self.channel_buffer, "localvar_set_type", 'private')
else:
w.buffer_set(self.channel_buffer, "localvar_set_type", 'channel')