Merge pull request #2609 from ianyfan/commands

commands: prevent running empty seat command
master
Drew DeVault 6 years ago committed by GitHub
commit f7568e26e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save