diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-11-17 01:09:03 +0000 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-11-17 01:09:03 +0000 |
commit | 8c52d01e52f638d891c016fbd003b25e370f370c (patch) | |
tree | c25457b70f754821b09caeea1753146a97bc5572 | |
parent | 83e46185745dc191da9da108499bfec05cf43010 (diff) | |
download | wee-slack-8c52d01e52f638d891c016fbd003b25e370f370c.tar.gz |
version bump - initial nicklist state
-rw-r--r-- | wee_slack.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/wee_slack.py b/wee_slack.py index 789e78c..35959c2 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -22,7 +22,7 @@ except: SCRIPT_NAME = "slack_extension" SCRIPT_AUTHOR = "Ryan Huber <rhuber@gmail.com>" -SCRIPT_VERSION = "0.98.7" +SCRIPT_VERSION = "0.99.0" SCRIPT_LICENSE = "MIT" SCRIPT_DESC = "Extends weechat for typing notification/search/etc on slack.com" @@ -248,9 +248,6 @@ class SlackServer(object): self.buffer = w.buffer_new(self.domain, "buffer_input_cb", "", "", "") w.buffer_set(self.buffer, "nicklist", "1") - w.nicklist_add_group(self.buffer, '', NICK_GROUP_HERE, "weechat.color.nicklist_group", 1) - w.nicklist_add_group(self.buffer, '', NICK_GROUP_AWAY, "weechat.color.nicklist_group", 1) - def create_slack_websocket(self, data): web_socket_url = data['url'] try: @@ -760,11 +757,11 @@ class User(object): if deleted: return + self.nicklist_pointer = w.nicklist_add_nick(server.buffer, "", self.name, self.color_name, "", "", 1) if self.presence == 'away': - ngroup = w.nicklist_search_group(server.buffer, "", NICK_GROUP_AWAY) - else: - ngroup = w.nicklist_search_group(server.buffer, "", NICK_GROUP_HERE) - self.nicklist_pointer = w.nicklist_add_nick(server.buffer, ngroup, self.name, self.color_name, "", "", 1) + w.nicklist_nick_set(self.server.buffer, self.nicklist_pointer, "visible", "0") + else; + w.nicklist_nick_set(self.server.buffer, self.nicklist_pointer, "visible", "1") # w.nicklist_add_nick(server.buffer, "", self.formatted_name(), "", "", "", 1) def __str__(self): |