aboutsummaryrefslogtreecommitdiffstats
path: root/slack/commands.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-14 17:44:25 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commitf790f652d3428404f789822a9bd510ff866d1640 (patch)
treee324df82dc9ea75b69510794fe7c08434ddf9663 /slack/commands.py
parent5e777696447f1895d67625c913398795308de31f (diff)
downloadwee-slack-f790f652d3428404f789822a9bd510ff866d1640.tar.gz
Add some todos
Diffstat (limited to 'slack/commands.py')
-rw-r--r--slack/commands.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/slack/commands.py b/slack/commands.py
index 44d1d13..cc446d3 100644
--- a/slack/commands.py
+++ b/slack/commands.py
@@ -254,12 +254,14 @@ def completion_list_add(completion: str, word: str, nick_completion: int, where:
if word == "%(slack_workspaces)":
completion_slack_workspaces_cb("", "slack_workspaces", "", completion)
else:
+ # TODO: Consider WeeChat verison support, in < 2.9 one must use hook_completion_list_add
weechat.completion_list_add(completion, word, nick_completion, where)
def completion_slack_workspace_commands_cb(
data: str, completion_item: str, buffer: str, completion: str
) -> int:
+ # TODO: Consider WeeChat verison support, in < 2.9 one must use hook_completion_get_string
base_command = weechat.completion_get_string(completion, "base_command")
base_word = weechat.completion_get_string(completion, "base_word")
args = weechat.completion_get_string(completion, "args")