summaryrefslogtreecommitdiff
path: root/src/config.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-02-26 19:26:50 -0500
committerAdam <Adam@anope.org>2014-02-26 19:26:50 -0500
commit8f3bd314ed3ce371d2f40687920246e6944376f6 (patch)
tree9417edaa703636bc8803b08e732df18bbfe93ad7 /src/config.cpp
parente2d456d4ce69a9f2d942f5f3c736827c32421960 (diff)
Fix not detecting eols in the config reader when the end of the line is the end of a multiline comment
Diffstat (limited to 'src/config.cpp')
-rw-r--r--src/config.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.cpp b/src/config.cpp
index 566ff11b7..167679ecb 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -722,8 +722,10 @@ void Conf::LoadConf(File &file)
{
in_comment = false;
++c;
+ // We might be at an eol, so continue on and process it
}
- continue;
+ else
+ continue;
}
else if (ch == '#' || (ch == '/' && c + 1 < len && line[c + 1] == '/'))
c = len - 1; // Line comment, ignore the rest of the line (much like this one!)