aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-08-07 19:35:12 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-08-07 19:35:12 +0200
commit42850c14a7108547323ca393a1f7ab2195efa8ed (patch)
treedc40fc56848d3f8842e6aa445eb29b13b7f046af /wee_slack.py
parent8b7358ea453f59c7f8a18be8c775a00f45338480 (diff)
downloadwee-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.py2
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