aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-18 12:42:29 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 12:55:39 +0100
commitc847e56d0b10499a7dc761f04ddfd0d860fd7788 (patch)
tree15d31a5df8759a613db868f71b3040b7b8adf35d
parent3b6bc38b53ca9ea81c8a055c78b9d93f0d75768b (diff)
downloadwee-slack-c847e56d0b10499a7dc761f04ddfd0d860fd7788.tar.gz
Rename clean option in status to clear
-rw-r--r--slack/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slack/commands.py b/slack/commands.py
index 48f7b23..cd626a7 100644
--- a/slack/commands.py
+++ b/slack/commands.py
@@ -366,12 +366,12 @@ def command_slack_debug(buffer: str, args: List[str], options: Options):
print_uncaught_error(error, True, options)
-@weechat_command("-clean")
+@weechat_command("-clear")
def command_slack_status(buffer: str, args: List[str], options: Options):
status = args[0]
slack_buffer = shared.buffers.get(buffer)
if slack_buffer is not None:
- if options.get("clean"):
+ if options.get("clear"):
run_async(slack_buffer.workspace.api.clear_user_status())
elif slack_buffer and len(status) > 0:
run_async(slack_buffer.workspace.api.set_user_status(status))