diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-02-06 08:06:35 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-02-06 08:06:35 -0800 |
commit | 82f311a42d8a9e8a66b71cff2397c1b2f03f5bf1 (patch) | |
tree | 3a0917b04b7257778cf231256ce804fdc43512e6 /wee_slack.py | |
parent | d575b847aab06c54f1f38b79da74ad24d9b97ea0 (diff) | |
download | wee-slack-82f311a42d8a9e8a66b71cff2397c1b2f03f5bf1.tar.gz |
fix huge channel messaging
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py index 6815ed1..246ea7a 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1186,7 +1186,7 @@ class SlackChannel(object): #if not afk: # afk = w.nicklist_add_group(self.channel_buffer, '', NICK_GROUP_AWAY, "weechat.color.nicklist_group", 1) - if user: + if user and len(self.members) < 1000: user = self.team.users[user] nick = w.nicklist_search_nick(self.channel_buffer, "", user.slack_name) # since this is a change just remove it regardless of where it is @@ -1209,8 +1209,8 @@ class SlackChannel(object): except Exception as e: dbg("DEBUG: {} {} {}".format(self.identifier, self.name, e)) else: - for fn in ["too", "many", "users", "to", "show"]: - w.nicklist_add_nick(self.channel_buffer, "", fn, w.color('white'), "", "", 1) + for fn in ["1| too", "2| many", "3| users", "4| to", "5| show"]: + w.nicklist_add_group(self.channel_buffer, '', fn, w.color('white'), 1) class SlackDMChannel(SlackChannel): |