+ directives[14].done = true;
+ }
+ else if (stricmp(directive, "PIDFILE") == 0)
+ {
+ value = strtok(NULL, " ");
+ pidfile = new char[strlen(value) + 1];
+ strcpy(pidfile, value);
+ directives[15].done = true;
+ }
+ else if (stricmp(directive, "MAXAFIGHTDISTANCE") == 0)
+ {
+ value = strtok(NULL, " ");
+ maxafightdistance = stringtoint(value);
+ directives[16].done = true;;
+ }
+ else if (stricmp(directive, "MAXBFIGHTDISTANCE") == 0)
+ {
+ value = strtok(NULL, " ");
+ maxbfightdistance = stringtoint(value);
+ directives[17].done = true;
+ }
+ else if (stricmp(directive, "MAXIDLETIME") == 0)
+ {
+ value = strtok(NULL, " ");
+ maxidletime = stringtoint(value);
+ directives[18].done = true;
+ }
+ else if (stricmp(directive, "IDLECHECKPERIOD") == 0)
+ {
+ value = strtok(NULL, " ");
+ idlecheckperiod = stringtoint(value);
+ directives[19].done = true;
+ }
+ else if (stricmp(directive, "LISTENONC_FOREST") == 0)
+ {
+ value = strtok(NULL, " ");
+ if (stricmp(value, "TRUE") == 0)
+ setListenOnCF();
+
+ 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, "REFRESHPERIOD") == 0)
+ {
+ value = strtok(NULL, " ");
+ refreshperiod = stringtoint(value);
+ directives[22].done = true;
+ }
+ else if (stricmp(directive, "LEVEL1EXPIRE") == 0)
+ {
+ value = strtok(NULL, " ");
+ level1expire = stringtoint(value);
+ directives[23].done = true;
+ }
+ else if (stricmp(directive, "DEFAULTEXPIRE") == 0)
+ {
+ value = strtok(NULL, " ");
+ defaultexpire = stringtoint(value);
+ directives[24].done = true;
+ }
+ else if (stricmp(directive, "USENICKSERV") == 0)
+ {
+ value = strtok(NULL, " ");
+ if (stricmp(value, "TRUE") == 0)
+ {
+ setUseNickServ();
+ }
+
+ directives[25].done = true;
+ }
+ else if (stricmp(directive, "NSNAME") == 0)
+ {
+ value = strtok(NULL, "");
+ nsname = new char[strlen(value) + 1];
+ strcpy(nsname, value);
+ directives[26].done = true;
+ }
+ else if (stricmp(directive, "NSPASS") == 0)
+ {
+ value = strtok(NULL, "");
+ nspass = new char[strlen(value) + 1];
+ 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;