char *remotepass; // Password for the server link
char *playerdata; // File to store player data in
+char *dragondata; // File to store current dragon data in
+char *masterdata; // File to store the master data in
char *newsdata; // File to store news data in
char *pidfile; // Process ID file
delete [] remotepass;
if (playerdata)
delete [] playerdata;
+ if (dragondata)
+ delete [] dragondata;
+ if (masterdata)
+ delete [] masterdata;
if (adminpass)
delete [] adminpass;
if (welcomemsg)
{
char *buf, *directive, *value;
- #define numdirectives 28
+ #define numdirectives 30
unload_config_file();
"GameServ should identify with NickServ";
directives[26].desc = "NSNAME - Your network's NickServ nickname";
directives[27].desc = "NSPASS - GameServ's NickServ Password";
+ directives[28].desc = "DRAGONDATA - File to store the current "\
+ "dragon's stats in";
+ directives[29].desc = "MASTERDATA - File to store the level master stats in";
configflags = 0;
strcpy(nspass, value);
directives[27].done = true;
}
+ else if (stricmp(directive, "DRAGONDATA") == 0)
+ {
+ value = strtok(NULL, "");
+ dragondata = new char[strlen(value) + 1];
+ strcpy(dragondata, value);
+ directives[28].done = true;
+ }
+ else if (stricmp(directive, "MASTERDATA") == 0)
+ {
+ value = strtok(NULL, "");
+ masterdata = new char[strlen(value) + 1];
+ strcpy(masterdata, value);
+ directives[29].done = true;
+ }
else if (stricmp(directive, "WELCOMEMSG") == 0)
{
// This directive is optional