diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2018-04-11 18:27:22 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2018-04-11 18:27:22 +0200 |
commit | 02d30e538576015134a578dc2e97c8a986fee536 (patch) | |
tree | 62e8558902a81711bb1ac43c642afff5ea9f98a9 | |
parent | f458097ff53e6e34bf6b47f62687c7ee55ed95a4 (diff) | |
download | wee-slack-02d30e538576015134a578dc2e97c8a986fee536.tar.gz |
Remove incorrect validation check for status command
The args argument is a string and includes 'status', so it will never be
None. Additionally, the status command works without any arguments
(which cleares the status), so it shouldn't have such a check.
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/wee_slack.py b/wee_slack.py index 14d56f0..c6e7bc6 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -3413,10 +3413,6 @@ def command_status(data, current_buffer, args): if channel: team = channel.team - if args is None: - server.buffer_prnt("Usage: /slack status [status emoji] [status text].") - return - split_args = args.split(None, 2) emoji = split_args[1] if len(split_args) > 1 else "" text = split_args[2] if len(split_args) > 2 else "" |