From: Art Cancro Date: Sat, 17 Sep 2022 21:21:27 +0000 (-0400) Subject: In the text client, changed some misleading error messages X-Git-Tag: v958~1 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=60bc77ee859ec10fd42094598e7dde310f3e1d2f In the text client, changed some misleading error messages --- diff --git a/textclient/citadel.c b/textclient/citadel.c index fe5ffe7fb..6559ef8eb 100644 --- a/textclient/citadel.c +++ b/textclient/citadel.c @@ -1046,11 +1046,10 @@ void get_serv_info(CtdlIPC * ipc, char *supplied_hostname) { /* Look up the , in the bible if you're confused */ (locate_host(ipc, buf), buf), buf); - /* Indicate to the server that we prefer to decode Base64 and - * quoted-printable on the client side. - */ + // Indicate to the server that we prefer to decode Base64 and + // quoted-printable on the client side. if ((CtdlIPCSpecifyPreferredFormats(ipc, buf, "dont_decode") / 100) != 2) { - scr_printf("ERROR: Extremely old server; MSG4 framework not supported.\n"); + scr_printf("Error %s:%d", __FILE__ , __LINE__); logoff(ipc, 0); } @@ -1063,7 +1062,7 @@ void get_serv_info(CtdlIPC * ipc, char *supplied_hostname) { * the plain text when we have it available. */ if ((CtdlIPCSpecifyPreferredFormats(ipc, buf, "text/plain|text/html|text/x-markdown") / 100) != 2) { - scr_printf("ERROR: Extremely old server; MSG4 framework not supported.\n"); + scr_printf("Error %s:%d", __FILE__ , __LINE__); logoff(ipc, 0); } } diff --git a/textclient/config.mk b/textclient/config.mk index 518496338..da064d22e 100644 --- a/textclient/config.mk +++ b/textclient/config.mk @@ -1,5 +1,5 @@ -CFLAGS := -Wformat-truncation=0 -ggdb -LDFLAGS := +CFLAGS := -Wformat-truncation=0 -ggdb -DHAVE_OPENSSL +LDFLAGS := -lssl -lcrypto -lz PREFIX := /usr/local BINDIR := /usr/local/bin CTDLDIR := /usr/local/citadel