--- uuxqt.c.orig Thu May 29 08:08:48 2003 +++ uuxqt.c Sat Jun 14 04:58:30 2003 @@ -969,6 +969,44 @@ processing here. */ for (i = 1; azQargs[i] != NULL; i++) { + if (azQargs[i][0] == '-' && azQargs[i][1] == '-') + { + char *zopts = azQargs[i] + 2; + + /* The -g, -n, and -s options take an argument. */ + if (!strncmp(zopts, "grade", 5) && zopts[5] != '=') + { + if (azQargs[i+1] != NULL) + ++i; + } + if (!(strncmp(zopts, "notify", 6) + && strncmp(zopts, "status", 6)) && zopts[6] != '=') + { + if (azQargs[i+1] != NULL) + ++i; + } + + /* The -I, -u and -x options are not permitted. */ + if (!strncmp(zopts, "config", 6)) + { + if (zopts[6] != '=' && azQargs[i+1] != NULL) + ++i; + azQargs[i] = zbufcpy ("--nouucico"); + } + if (!strncmp(zopts, "user", 4)) + { + if (zopts[4] != '=' && azQargs[i+1] != NULL) + ++i; + azQargs[i] = zbufcpy ("--nouucico"); + } + if (!strncmp(zopts, "debug", 5)) + { + if (zopts[5] != '=' && azQargs[i+1] != NULL) + ++i; + azQargs[i] = zbufcpy ("--nouucico"); + } + } + else if (azQargs[i][0] == '-' && finoptions) { if (azQargs[i][1] == '-')