aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py13
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):