Fix a bug

This commit is contained in:
Richard Chien 2017-01-01 00:54:19 +08:00
parent ee7df2ab37
commit 6e86d36056

View File

@ -98,6 +98,7 @@ def cron_check(args_text, ctx_msg):
def add_job(args_text, ctx_msg, internal=False): def add_job(args_text, ctx_msg, internal=False):
if args_text.strip() in ('', 'help', '-h', '--help') and not internal: if args_text.strip() in ('', 'help', '-h', '--help') and not internal:
_send_add_job_help_msg(ctx_msg, internal) _send_add_job_help_msg(ctx_msg, internal)
return
args_text = args_text.lstrip() args_text = args_text.lstrip()
try: try: