From c124048cd78a33835dc9c525b6db313bbc03168f Mon Sep 17 00:00:00 2001 From: NullBite Date: Sun, 20 Mar 2022 01:24:06 -0400 Subject: [PATCH] Make command syntax more consistent --- script.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.lua b/script.lua index 12fe2ac..5a9ed05 100644 --- a/script.lua +++ b/script.lua @@ -341,7 +341,7 @@ function onCommand(input) print(input[2] .. " " .. input[3]) end if input[1] == chat_prefix .. "snore" then - if input[2] == "toggle" then + if input[2] == "toggle" or #input==1 then setSnoring() log("Snoring is now " .. (snore_enabled and "enabled" or "disabled")) end