same problem in sic as in dmenu
This commit is contained in:
parent
1f3f048ab7
commit
fe306465d0
@ -1,5 +1,5 @@
|
|||||||
# sic version
|
# sic version
|
||||||
VERSION = 0.4
|
VERSION = 0.5
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
|
25
sic.c
25
sic.c
@ -232,16 +232,21 @@ main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
nick = fullname = getenv("USER");
|
nick = fullname = getenv("USER");
|
||||||
for(i = 1; i < argc; i++)
|
for(i = 1; i < argc; i++)
|
||||||
if(!strncmp(argv[i], "-s", 3))
|
if(!strncmp(argv[i], "-s", 3)) {
|
||||||
server = argv[++i];
|
if(++i < argc) server = argv[i];
|
||||||
else if(!strncmp(argv[i], "-p", 3))
|
}
|
||||||
port = (unsigned short)atoi(argv[++i]);
|
else if(!strncmp(argv[i], "-p", 3)) {
|
||||||
else if(!strncmp(argv[i], "-n", 3))
|
if(++i < argc) port = (unsigned short)atoi(argv[i]);
|
||||||
nick = argv[++i];
|
}
|
||||||
else if(!strncmp(argv[i], "-k", 3))
|
else if(!strncmp(argv[i], "-n", 3)) {
|
||||||
password = argv[++i];
|
if(++i < argc) nick = argv[i];
|
||||||
else if(!strncmp(argv[i], "-f", 3))
|
}
|
||||||
fullname = argv[++i];
|
else if(!strncmp(argv[i], "-k", 3)) {
|
||||||
|
if(++i < argc) password = argv[i];
|
||||||
|
}
|
||||||
|
else if(!strncmp(argv[i], "-f", 3)) {
|
||||||
|
if(++i < argc) fullname = argv[i];
|
||||||
|
}
|
||||||
else if(!strncmp(argv[i], "-v", 3)) {
|
else if(!strncmp(argv[i], "-v", 3)) {
|
||||||
fputs("sic-"VERSION", (C)opyright MMVI Anselm R. Garbe\n", stdout);
|
fputs("sic-"VERSION", (C)opyright MMVI Anselm R. Garbe\n", stdout);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
Loading…
Reference in New Issue
Block a user