New macro for putting a Citserver reply into important message: SRV_STATUS_MSG
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 4 Nov 2010 23:14:38 +0000 (00:14 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 4 Nov 2010 23:14:38 +0000 (00:14 +0100)
Use it like that:
StrBuf_ServGetln(Line);
if  (GetServerStatus(Line, NULL) != 1) {
AppendImportantMessage(SRV_STATUS_MSG(Line));

webcit/webcit.h

index c00cf59e1bfa1328aa8a51978dc51bf099fe5bdd..51976a5180996c5f7c7fa92f324637ad3b55e931 100644 (file)
@@ -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