aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2015-01-19 14:34:49 -0800
committerRyan Huber <rhuber@gmail.com>2015-01-19 14:34:49 -0800
commiteb522df0518ad5412c1945ee1c99e0348134e93c (patch)
treef454b9040feb983cfab7b5ede70ca88e9dd981f2
parent8ba57307a67329b834e6b487ff49bd7d790402b7 (diff)
downloadwee-slack-eb522df0518ad5412c1945ee1c99e0348134e93c.tar.gz
fix colors in nicklist
-rw-r--r--wee_slack.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 7f68fb4..93959bf 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -384,9 +384,9 @@ class Channel(SlackThing):
for user in self.members:
user = self.server.users.find(user)
if user.presence == 'away':
- w.nicklist_add_nick(self.channel_buffer, "", user.name, user.color, " ", "", 1)
+ w.nicklist_add_nick(self.channel_buffer, "", user.name, user.color_name, " ", "", 1)
else:
- w.nicklist_add_nick(self.channel_buffer, "", user.name, user.color, "+", "", 1)
+ w.nicklist_add_nick(self.channel_buffer, "", user.name, user.color_name, "+", "", 1)
except:
print "DEBUG: {} {}".format(self.identifier,self.name)
@@ -589,9 +589,9 @@ class User(SlackThing):
self.server = server
self.update_color()
if self.presence == 'away':
- self.nicklist_pointer = w.nicklist_add_nick(server.buffer, "", self.name, self.color, " ", "", 0)
+ self.nicklist_pointer = w.nicklist_add_nick(server.buffer, "", self.name, self.color_name, " ", "", 0)
else:
- self.nicklist_pointer = w.nicklist_add_nick(server.buffer, "", self.name, self.color, "+", "", 1)
+ self.nicklist_pointer = w.nicklist_add_nick(server.buffer, "", self.name, self.color_name, "+", "", 1)
# w.nicklist_add_nick(server.buffer, "", self.formatted_name(), "", "", "", 1)
def __eq__(self, compare_str):