Make command syntax more consistent
This commit is contained in:
parent
98d613c227
commit
c124048cd7
@ -341,7 +341,7 @@ function onCommand(input)
|
|||||||
print(input[2] .. " " .. input[3])
|
print(input[2] .. " " .. input[3])
|
||||||
end
|
end
|
||||||
if input[1] == chat_prefix .. "snore" then
|
if input[1] == chat_prefix .. "snore" then
|
||||||
if input[2] == "toggle" then
|
if input[2] == "toggle" or #input==1 then
|
||||||
setSnoring()
|
setSnoring()
|
||||||
log("Snoring is now " .. (snore_enabled and "enabled" or "disabled"))
|
log("Snoring is now " .. (snore_enabled and "enabled" or "disabled"))
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user