view blk_parsemotd.c @ 3:5a977ccbc7a9 default tip

Empty changelog
author darius
date Sat, 06 Dec 1997 05:41:29 +0000
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;
    }
}