summaryrefslogtreecommitdiff
path: root/vchat-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'vchat-client.c')
-rwxr-xr-xvchat-client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vchat-client.c b/vchat-client.c
index a3e7fd2..f30e1c0 100755
--- a/vchat-client.c
+++ b/vchat-client.c
@@ -458,7 +458,7 @@ void usage(unsigned char *name) {
458 puts (" -l local connect (no SSL + connects localhost:2323)"); 458 puts (" -l local connect (no SSL + connects localhost:2323)");
459 puts (" -z don't use certificate files"); 459 puts (" -z don't use certificate files");
460 printf (" -s set server (default \"%s\")\n",getstroption(CF_SERVERHOST)); 460 printf (" -s set server (default \"%s\")\n",getstroption(CF_SERVERHOST));
461 printf (" -p set port (default %d)\n",getintoption(CF_SERVERPORT)); 461 printf (" -p set port (default %s)\n",getstroption(CF_SERVERPORT));
462 printf (" -c set channel (default %d)\n",getintoption(CF_CHANNEL)); 462 printf (" -c set channel (default %d)\n",getintoption(CF_CHANNEL));
463 if (nick) 463 if (nick)
464 printf(" -n set nickname (default \"%s\")\n",nick); 464 printf(" -n set nickname (default \"%s\")\n",nick);
@@ -499,7 +499,7 @@ main (int argc, char **argv)
499 case 'l': setintoption(CF_USESSL,0); break; 499 case 'l': setintoption(CF_USESSL,0); break;
500 case 'z': setintoption(CF_USECERT,0); break; 500 case 'z': setintoption(CF_USECERT,0); break;
501 case 's': setstroption(CF_SERVERHOST,optarg); break; 501 case 's': setstroption(CF_SERVERHOST,optarg); break;
502 case 'p': setintoption(CF_SERVERPORT,strtol(optarg,NULL,10)); break; 502 case 'p': setstroption(CF_SERVERPORT,optarg); break;
503 case 'c': setintoption(CF_CHANNEL,strtol(optarg,NULL,10)); break; 503 case 'c': setintoption(CF_CHANNEL,strtol(optarg,NULL,10)); break;
504 case 'n': setstroption(CF_NICK,optarg); break; 504 case 'n': setstroption(CF_NICK,optarg); break;
505 case 'f': setstroption(CF_FROM,optarg); break; 505 case 'f': setstroption(CF_FROM,optarg); break;
@@ -518,7 +518,7 @@ main (int argc, char **argv)
518 518
519 if (!getintoption(CF_USESSL)) { 519 if (!getintoption(CF_USESSL)) {
520 setstroption(CF_SERVERHOST,"localhost"); 520 setstroption(CF_SERVERHOST,"localhost");
521 setintoption(CF_SERVERPORT,2323); 521 setstroption(CF_SERVERPORT,"2323");
522 } else { 522 } else {
523 SSL_library_init (); 523 SSL_library_init ();
524 SSL_load_error_strings (); 524 SSL_load_error_strings ();
@@ -535,7 +535,7 @@ main (int argc, char **argv)
535 initui (); 535 initui ();
536 536
537 /* attempt connection */ 537 /* attempt connection */
538 if (!vcconnect (getstroption(CF_SERVERHOST), getintoption(CF_SERVERPORT))) 538 if (!vcconnect (getstroption(CF_SERVERHOST), getstroption(CF_SERVERPORT)))
539 { 539 {
540 snprintf (tmpstr, TMPSTRSIZE, "Could not connect to server, %s.", 540 snprintf (tmpstr, TMPSTRSIZE, "Could not connect to server, %s.",
541 sys_errlist[errno]); 541 sys_errlist[errno]);