diff options
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r-- | src/inspircd_io.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index 0ae36d292..edb9702ab 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -1042,7 +1042,10 @@ bool ServerConfig::LoadConf(ConfigDataHash &target, const char* filename, std::o */ if((ch == '#') && !in_quote) + { in_comment = true; + continue; + } switch(ch) { @@ -1056,9 +1059,6 @@ bool ServerConfig::LoadConf(ConfigDataHash &target, const char* filename, std::o ch = ' '; } - if(in_comment) - continue; - line += ch; if(ch == '<') |