Merge branch 'refs/heads/t/command_handler_cleanups'
[paraslash.git] / command.c
index 22948db..e8f6948 100644 (file)
--- a/command.c
+++ b/command.c
@@ -171,7 +171,7 @@ static int check_sender_args(int argc, char * const * argv, struct sender_comman
        const char *subcmds[] = {"add", "delete", "allow", "deny", "on", "off", NULL};
 
        scd->sender_num = -1;
-       if (argc < 2)
+       if (argc < 3)
                return -E_COMMAND_SYNTAX;
        for (i = 0; senders[i].name; i++)
                if (!strcmp(senders[i].name, argv[1]))