#include <fstream.h>
#include <string.h>
+#include <stdlib.h>
#include <stdio.h>
#include "extern.h"
char *c_ForestTopic; // Forest Channel Topic
char *adminpass; // Administrator password
char *welcomemsg; // Welcome Message
-int confloadtime; // Welcome Message Delay
+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, " ");
adminpass = new char[strlen(value) + 1];
strcpy(adminpass, value);
}
- else if (stricmp(directive, "CONFLOADTIME") == 0)
+ else if (stricmp(directive, "WELCOMEDELAY") == 0)
+ {
+ 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, " ");
- confloadtime = stringtoint(value);
+ updateperiod = stringtoint(value);
}
else if (stricmp(directive, "WELCOMEMSG") == 0)
{