1
|
1 /* $Id: blk_parsemotd.c,v 1.1.1.1 1997/12/06 05:41:28 darius Exp $ */
|
|
2
|
|
3 /*
|
|
4 *
|
|
5 */
|
|
6
|
|
7 #include <string.h>
|
|
8 #include "Wlib.h"
|
|
9 #include "defs.h"
|
|
10 #include "struct.h"
|
|
11 #include "data.h"
|
|
12 #include "proto.h"
|
|
13
|
|
14 void
|
|
15 blk_parsemotd(line)
|
|
16 char *line;
|
|
17 {
|
|
18 /*
|
|
19 Verify it's our line.
|
|
20 */
|
|
21
|
|
22 if (strncmp("BLK: ", line, 5) != 0)
|
|
23 return;
|
|
24
|
|
25 /*
|
|
26 See if it's a refit string.
|
|
27 */
|
|
28
|
|
29 if (strncmp(&line[5], "REFIT", 5) == 0) {
|
|
30 strncpy(blk_refitstring, &line[10], 79);
|
|
31 blk_refitstring[79] = '\0';
|
|
32 }
|
|
33 /*
|
|
34 Check to see if it's a borgish feature being enabled.
|
|
35 */
|
|
36 else if (strncmp(&line[5], "BORGISH ", 8) == 0) {
|
|
37 if (strncmp(&line[13], "FRCLOAK", 7) == 0)
|
|
38 blk_friendlycloak = 1;
|
|
39 }
|
|
40 }
|