From 3e238b79834709084b63f69afed55f0edb9724de Mon Sep 17 00:00:00 2001 From: hgw Date: Mon, 2 Oct 2023 02:11:27 +0000 Subject: [PATCH] Fix help command if no sub-menu is specified --- bot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.js b/bot.js index 135d00a..52a6272 100644 --- a/bot.js +++ b/bot.js @@ -83,7 +83,9 @@ function openPostWorker(chan, command, d1, d2, d3, d4, d5, d6) { } async function help(chan, sub) { - var sub = sub.toLowerCase() + if (sub != undefined ) { + var sub = sub.toLowerCase() + } openPostWorker(chan, 'help', sub) }