aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
Diffstat (limited to 'slack')
-rw-r--r--slack/commands.py2
-rw-r--r--slack/slack_api.py2
2 files changed, 3 insertions, 1 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")
diff --git a/slack/slack_api.py b/slack/slack_api.py
index 3bd75c4..ef15d81 100644
--- a/slack/slack_api.py
+++ b/slack/slack_api.py
@@ -26,7 +26,7 @@ class SlackApi:
return {
"useragent": f"wee_slack {shared.SCRIPT_VERSION}",
"httpheader": f"Authorization: Bearer {self.workspace.config.api_token.value}",
- "cookie": self.workspace.config.api_cookies.value,
+ "cookie": self.workspace.config.api_cookies.value, # TODO: url_encode_if_not_encoded
}
async def _fetch(self, method: str, params: Dict[str, Union[str, int]] = {}):