aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py
index ab41b37..21cf0d3 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -987,7 +987,11 @@ def me_command_cb(data, current_buffer, args):
def join_command_cb(data, current_buffer, args):
- if command_talk(current_buffer, args.split()[1]):
+ args = args.split()
+ if len(args) < 2:
+ w.prnt(current_buffer, "Missing channel argument")
+ return w.WEECHAT_RC_OK_EAT
+ elif command_talk(current_buffer, args[1]):
return w.WEECHAT_RC_OK_EAT
else:
return w.WEECHAT_RC_OK