diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2018-04-11 18:52:21 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2018-04-11 18:57:27 +0200 |
commit | 696cf07850676b0cab4bccd1ba04a37b76c420ba (patch) | |
tree | daa4951a569b1a386153df63e5e1410e66178eb5 /wee_slack.py | |
parent | 02d30e538576015134a578dc2e97c8a986fee536 (diff) | |
download | wee-slack-696cf07850676b0cab4bccd1ba04a37b76c420ba.tar.gz |
Fix usage check in slash command
The args argument will be 'slash' when not giving any arguments to the
slash command, it will never be None. The `server` variable doesn't
exist anymore, use `w.prnt` instead.
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index c6e7bc6..270f424 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -3312,8 +3312,8 @@ def command_slash(data, current_buffer, args): if channel: team = channel.team - if args is None: - server.buffer_prnt("Usage: /slack slash /someslashcommand [arguments...].") + if args == 'slash': + w.prnt("", "Usage: /slack slash /someslashcommand [arguments...].") return split_args = args.split(None, 2) |