Return "invalid command" if command not exists

master
zmv7 2022-08-23 23:22:41 +05:00 committed by GitHub
parent aa924a4b74
commit 211e078cff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -10,5 +10,7 @@ core.register_chatcommand("doas", {
if vcmd then
vcmd.func(nick,par)
return true, "Executed '/"..cmd.." "..par.."' as "..nick
end
else
return false, "Invalid command"
end
end})