]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/config.cpp
Updated some log entries and changed some cerr to log().
[irc/gameservirc.git] / gameserv / config.cpp
index 3426a67ddc1d03c73a0cd90bea62e703be710c55..9e8e321e9e47c65b3c6687983e13390d09c3975d 100644 (file)
@@ -1,9 +1,11 @@
-#include <fstream.h>
+#include <fstream>
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include "extern.h"
 
+using std::ifstream;
+
 void load_config_file(char *config);
 void unload_config_file();
 
@@ -71,7 +73,7 @@ void load_config_file(char *config)
     infile.open(config);
     if (infile.fail())
     {
-       cerr << "Error opening " << config << endl;
+       log("Error opening %s", config);
        return;
     }
 
@@ -89,7 +91,7 @@ void load_config_file(char *config)
         if (stricmp(directive, "DIE") == 0)
        {
            value = strtok(NULL, "");
-           cerr << value << endl;
+           log("You should read the entire %s file!", config);
            exit(0);
        }
        if (stricmp(directive, "S_GAMESERV") == 0)