Mercurial > ~darius > hgwebdir.cgi > paradise_client
view blk_parsemotd.c @ 2:fba0b6e6cdc7
Added tag ALPHA for changeset ff5e05767bd3
author | darius@midget.dons.net.au |
---|---|
date | Tue, 23 Oct 2007 10:09:09 +0930 |
parents | ff5e05767bd3 |
children |
line wrap: on
line source
/* $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; } }