]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/config.cpp
Switched the hybrid contrib files to an updated version for configscript. Thank you...
[irc/gameservirc.git] / gameserv / config.cpp
index 274b6c4928275325a53ff032c3a30c6427495424..abdb4d2423e6543ca7ac9986c279e711c60b3c20 100644 (file)
@@ -25,6 +25,7 @@ char *remoteport;             // Port to connect to on remoteserver
 char *remotepass;              // Password for the server link
 
 char *playerdata;              // File to store player data in
+char *monsterdata;             // File to load monster data from
 
 void unload_config_file()
 {
@@ -48,6 +49,8 @@ void unload_config_file()
        delete [] remotepass;
     if (playerdata)
        delete [] playerdata;
+    if (monsterdata)
+       delete [] monsterdata;
     if (adminpass)
        delete [] adminpass;
     if (welcomemsg)
@@ -138,6 +141,12 @@ void load_config_file(char *config)
            playerdata = new char[strlen(value) + 1];
            strcpy(playerdata, value);
        }
+       else if (stricmp(directive, "MONSTERDATA") == 0)
+       {
+           value = strtok(NULL, "");
+           monsterdata = new char[strlen(value) + 1];
+           strcpy(monsterdata, value);
+       }
        else if (stricmp(directive, "ADMINPASS") == 0)
        {
            value = strtok(NULL, "");