Mercurial > ~darius > hgwebdir.cgi > paradise_client
diff blk_parsemotd.c @ 1:ff5e05767bd3 ALPHA
Empty changelog
author | darius |
---|---|
date | Sat, 06 Dec 1997 05:41:28 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/blk_parsemotd.c Sat Dec 06 05:41:28 1997 +0000 @@ -0,0 +1,40 @@ +/* $Id: blk_parsemotd.c,v 1.1.1.1 1997/12/06 05:41:28 darius Exp $ */ + +/* + * + */ + +#include <string.h> +#include "Wlib.h" +#include "defs.h" +#include "struct.h" +#include "data.h" +#include "proto.h" + +void +blk_parsemotd(line) + char *line; +{ + /* + Verify it's our line. + */ + + if (strncmp("BLK: ", line, 5) != 0) + return; + + /* + See if it's a refit string. + */ + + if (strncmp(&line[5], "REFIT", 5) == 0) { + strncpy(blk_refitstring, &line[10], 79); + blk_refitstring[79] = '\0'; + } + /* + Check to see if it's a borgish feature being enabled. + */ + else if (strncmp(&line[5], "BORGISH ", 8) == 0) { + if (strncmp(&line[13], "FRCLOAK", 7) == 0) + blk_friendlycloak = 1; + } +}