diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-02-06 00:35:14 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-02-06 00:35:14 -0800 |
commit | 573939bd73fb65cd2ca7c8392b7917037e7cb29e (patch) | |
tree | e4cf2ed5096991b9454d704901dbf22cf7520b73 /wee_slack.py | |
parent | bf7cd668b265ace9b76f5881e54d7f77025c5409 (diff) | |
download | wee-slack-573939bd73fb65cd2ca7c8392b7917037e7cb29e.tar.gz |
mark server buffer
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index 8c3ea98..a320a2b 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -793,6 +793,7 @@ class SlackTeam(object): if not self.channel_buffer: self.channel_buffer = w.buffer_new("{}".format(self.domain), "buffer_input_callback", "EVENTROUTER", "", "") self.eventrouter.weechat_controller.register_buffer(self.channel_buffer, self) + w.buffer_set(self.channel_buffer, "localvar_set_type", 'server') if w.config_string(w.config_get('irc.look.channel_buffer')) == 'merge_with_core': w.buffer_merge(self.channel_buffer, w.buffer_search_main()) w.buffer_set(self.channel_buffer, "nicklist", "1") @@ -1023,6 +1024,8 @@ class SlackChannel(object): elif self.type in ["im", "mpdm"]: tags = tag("dm") self.new_messages = True + #elif nick in [x.strip() for x in w.prefix("join"), w.prefix("quit")]: + # tags = tag("joinleave") else: tags = tag("default") self.new_messages = True |