From 60bc77ee859ec10fd42094598e7dde310f3e1d2f Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 17 Sep 2022 17:21:27 -0400 Subject: [PATCH] In the text client, changed some misleading error messages --- textclient/citadel.c | 9 ++++----- textclient/config.mk | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) 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 -- 2.39.2