fixed comments in the config oops

This commit is contained in:
vaxerski 2021-12-10 21:57:08 +01:00
parent caa967a9b2
commit d329e39873
1 changed files with 1 additions and 3 deletions

View File

@ -257,7 +257,7 @@ void parseLine(std::string& line) {
// now, cut the comment off // now, cut the comment off
if (COMMENTSTART != std::string::npos) if (COMMENTSTART != std::string::npos)
line = line.substr(COMMENTSTART + 1); line = line.substr(0, COMMENTSTART);
// remove shit at the beginning // remove shit at the beginning
while (line[0] == ' ' || line[0] == '\t') { while (line[0] == ' ' || line[0] == '\t') {
@ -359,12 +359,10 @@ void ConfigManager::loadConfigLoadVars() {
Debug::log(NONE, line); Debug::log(NONE, line);
parseError = "Config error at line " + std::to_string(linenum) + ": Line parsing error."; parseError = "Config error at line " + std::to_string(linenum) + ": Line parsing error.";
//break;
} }
if (parseError != "" && parseError.find("Config error at line") != 0) { if (parseError != "" && parseError.find("Config error at line") != 0) {
parseError = "Config error at line " + std::to_string(linenum) + ": " + parseError; parseError = "Config error at line " + std::to_string(linenum) + ": " + parseError;
//break;
} }
++linenum; ++linenum;