char *playerdata; // File to store player data in
char *monsterdata; // File to load monster data from
+char *newsdata; // File to store news data in
char *pidfile; // Process ID file
#if defined(P10)
delete [] pidfile;
if (ignoreserverslist)
delete [] ignoreserverslist;
+ if (newsdata)
+ delete [] newsdata;
configflags = 0;
}
{
char *buf, *directive, *value;
- #define numdirectives 21
+ #define numdirectives 22
unload_config_file();
directives[20].desc = "LISTENONC_FOREST - True/False as to "\
"whether or not to listen for forest "\
"commands on the forest channel";
+ directives[21].desc = "NEWSDATA - File to store daily news in";
configflags = 0;
directives[20].done = true;
}
+ else if (stricmp(directive, "NEWSDATA") == 0)
+ {
+ value = strtok(NULL, " ");
+ newsdata = new char [strlen(value) + 1];
+ strcpy(newsdata, value);
+ directives[21].done = true;
+ }
else if (stricmp(directive, "WELCOMEMSG") == 0)
{
// This directive is optional