]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/configreader.cpp
Give tons more information in the xml feed, should be enough to construct just about...
[user/henk/code/inspircd.git] / src / configreader.cpp
index e45a76b401c4b64b6c7aca5eda96ccf1a5c4e9e1..2ee6ace26e81bb942791186fc82fd7f5fe0f5a40 100644 (file)
@@ -1333,9 +1333,8 @@ bool ServerConfig::LoadConf(ConfigDataHash &target, FILE* &conf, const char* fil
        include_stack.push_back(filename);
 
        /* Start reading characters... */
-       while (!feof(conf))
+       while ((ch = fgetc(conf)) != EOF)
        {
-               ch = fgetc(conf);
                /*
                 * Fix for moronic windows issue spotted by Adremelech.
                 * Some windows editors save text files as utf-16, which is