aboutsummaryrefslogtreecommitdiffstats
path: root/slack/commands.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-01-10 22:37:29 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:55 +0100
commitfa0001661c400327c4fdebeb226a08bcdb1a5fd1 (patch)
tree7915745a11f3c32494f202b736bec512177f7452 /slack/commands.py
parent5dff7099aee39f1a2881387c00c55a3ea1641997 (diff)
downloadwee-slack-fa0001661c400327c4fdebeb226a08bcdb1a5fd1.tar.gz
Fix bots with multiple names only being added once to nicklist
If a bot uses multiple nicks, we have to add all of them to the nicklist, so none of the nicks are shown as offline.
Diffstat (limited to 'slack/commands.py')
-rw-r--r--slack/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/commands.py b/slack/commands.py
index cc2cbcb..ed57953 100644
--- a/slack/commands.py
+++ b/slack/commands.py
@@ -489,7 +489,7 @@ def completion_nicks_cb(
if slack_buffer is None:
return weechat.WEECHAT_RC_OK
- buffer_nicks = [user.nick.raw_nick for user in slack_buffer.members]
+ buffer_nicks = [nick.raw_nick for nick in slack_buffer.members]
for nick in buffer_nicks:
weechat.completion_list_add(
completion,