From: Wilfried Goesgens Date: Thu, 4 Nov 2010 23:14:38 +0000 (+0100) Subject: New macro for putting a Citserver reply into important message: SRV_STATUS_MSG X-Git-Tag: v8.01~608 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=307c9e794f9c4f8dcfc91d97b12516f1d97ce96b New macro for putting a Citserver reply into important message: SRV_STATUS_MSG Use it like that: StrBuf_ServGetln(Line); if (GetServerStatus(Line, NULL) != 1) { AppendImportantMessage(SRV_STATUS_MSG(Line)); --- diff --git a/webcit/webcit.h b/webcit/webcit.h index c00cf59e1..51976a518 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -221,7 +221,7 @@ extern char *ssl_cipher_list; - +#define SRV_STATUS_MSG(ServerLineBuf) (ChrPtr(ServerLineBuf) + 4), (StrLength(ServerLineBuf) - 4) #define MAJORCODE(a) (((int)(a / 100) ) * 100) #define LISTING_FOLLOWS 100