diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2019-08-07 19:35:12 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-08-07 19:35:12 +0200 |
commit | 42850c14a7108547323ca393a1f7ab2195efa8ed (patch) | |
tree | dc40fc56848d3f8842e6aa445eb29b13b7f046af /wee_slack.py | |
parent | 8b7358ea453f59c7f8a18be8c775a00f45338480 (diff) | |
download | wee-slack-42850c14a7108547323ca393a1f7ab2195efa8ed.tar.gz |
Don't add deleted users to tab completion
Fixes #703
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index e1481d3..ceb9adf 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -993,7 +993,7 @@ def nick_completion_cb(data, completion_item, current_buffer, completion): for member in current_channel.members: user = current_channel.team.users.get(member) - if user: + if user and not user.deleted: w.hook_completion_list_add(completion, "@" + user.name, 1, w.WEECHAT_LIST_POS_SORT) return w.WEECHAT_RC_OK |