$Log$
+ Revision 601.126 2003/01/25 07:37:15 error
+ * whobbs.c: Print error message if we can't connect to server
+
Revision 601.125 2003/01/23 05:50:59 ajc
* citadel.c: hitting enter without entering a room name in the <.G>oto and
<.S>kip commands now does nothing instead of exhibiting undefined behavior
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
if (getenv("REQUEST_METHOD") != NULL) www = 1;
ipc = CtdlIPC_new(argc, argv, hostbuf, portbuf);
+ if (!ipc) {
+ fprintf(stderr, "Server not available: %s\n", strerror(errno));
+ logoff(errno);
+ }
CtdlIPC_getline(ipc, buf);
if ((buf[0]!='2')&&(strncmp(buf,"551",3))) {
fprintf(stderr,"%s: %s\n",argv[0],&buf[4]);