char *masterdata; // File to store the master data in
char *newsdata; // File to store news data in
char *pidfile; // Process ID file
+char *scriptdir; // Directory to store scripts in
#if defined(P10)
char *gsnum = "[]AAA"; // GameServ Numeric
delete [] nsname;
if (nspass)
delete [] nspass;
+ if (scriptdir)
+ delete [] scriptdir;
configflags = 0;
}
{
char *buf, *directive, *value;
-#define numdirectives 41
+#define numdirectives 42
unload_config_file();
directives[38].desc = "NUMROLLOVERFIGHTS - Number of forest fights to roll over";
directives[39].desc = "FAIRFIGHTS - True/False as to whether or not to check for fair fights";
directives[40].desc = "MAXNICKLEN - Maximum length a nickname can be";
+ directives[41].desc = "SCRIPTDIR - Directory to store scripts in";
configflags = 0;
maxnicklen = stringtoint(value);
directives[40].done = true;
}
+ else if (stricmp(directive, "SCRIPTDIR") == 0)
+ {
+ value = strtok(NULL, " ");
+ scriptdir = new char [strlen(value) + 1];
+ strcpy(scriptdir, value);
+ directives[41].done = true;
+ }
else if (stricmp(directive, "WELCOMEMSG") == 0)
{
// This directive is optional