#include <fstream.h>
#include <string.h>
+#include <stdlib.h>
#include <stdio.h>
#include "extern.h"
char *welcomemsg; // Welcome Message
int welcomedelay; // Welcome Message Delay
int updateperiod; // Seconds until another player database update
+int forestfights; // Forest fights per day
// Remote server stuff. This is used for the outgoing connection gameserv needs to make
// to a real ircd.
directive = strtok(buf, " ");
+ if (stricmp(directive, "DIE") == 0)
+ {
+ value = strtok(NULL, "");
+ cerr << value << endl;
+ exit(0);
+ }
if (stricmp(directive, "S_GAMESERV") == 0)
{
value = strtok(NULL, " ");
value = strtok(NULL, " ");
welcomedelay = stringtoint(value);
}
+ else if (stricmp(directive, "FORESTFIGHTS") == 0)
+ {
+ value = strtok(NULL, " ");
+ forestfights = stringtoint(value);
+ }
else if (stricmp(directive, "UPDATEPERIOD") == 0)
{
value = strtok(NULL, " ");