i'm an idiot
@@ -1075,11 +1075,12 @@ class SlackChannel(object):
#else:
# self.eventrouter.weechat_controller.register_buffer(self.channel_buffer, self)
try:
- if self.unread_count_display != 0:
- for c in range(0, self.unread_count_display):
+ for c in range(self.unread_count_display):
if self.type == "im":
+ print self.channel_buffer
w.buffer_set(self.channel_buffer, "hotlist", "2")
else:
+ print self.channel_buffer
w.buffer_set(self.channel_buffer, "hotlist", "1")
else:
pass
@@ -1898,6 +1899,9 @@ def process_message(message_json, eventrouter, store=True, **kwargs):
text = text[1:-1]
if message.sender != channel.team.nick:
text = message.sender + " " + text
+ try:
+ channel.unread_count_display += 1
+ except:
channel.unread_count_display += 1
channel.buffer_prnt(w.prefix("action").rstrip(), text, message.ts, tag_nick=message.sender_plain, **kwargs)
