Make command syntax more consistent

This commit is contained in:
NullBite 2022-03-20 01:24:06 -04:00
parent 98d613c227
commit c124048cd7
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -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