Merge pull request #2609 from ianyfan/commands

commands: prevent running empty seat command
This commit is contained in:
Drew DeVault 2018-09-08 17:06:33 -04:00 committed by GitHub
commit f7568e26e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ static struct cmd_handler seat_handlers[] = {
struct cmd_results *cmd_seat(int argc, char **argv) {
struct cmd_results *error = NULL;
if ((error = checkarg(argc, "seat", EXPECTED_AT_LEAST, 1))) {
if ((error = checkarg(argc, "seat", EXPECTED_AT_LEAST, 2))) {
return error;
}