int maxbfightdistance; // Max levels below a player they can fight player->player
int maxidletime; // Max time (in seconds) a player can be idle for
int idlecheckperiod; // Period for checking every player's idle time
+long refreshperiod; // Period for refreshing players
long configflags; // Holds the bit representation of some boolean values
// Remote server stuff. This is used for the outgoing connection gameserv needs to make
{
char *buf, *directive, *value;
- #define numdirectives 22
+ #define numdirectives 23
unload_config_file();
"whether or not to listen for forest "\
"commands on the forest channel";
directives[21].desc = "NEWSDATA - File to store daily news in";
+ directives[22].desc = "REFRESHPERIOD - Period (in seconds) to "\
+ "refresh players";
configflags = 0;
strcpy(newsdata, value);
directives[21].done = true;
}
+ else if (stricmp(directive, "REFRESHPERIOD") == 0)
+ {
+ value = strtok(NULL, " ");
+ refreshperiod = stringtoint(value);
+ directives[22].done = true;
+ }
else if (stricmp(directive, "WELCOMEMSG") == 0)
{
// This directive is optional