mirror of
https://github.com/anope/anope.git
synced 2026-07-09 03:43:12 +02:00
Fix not detecting eols in the config reader when the end of the line is the end of a multiline comment
This commit is contained in:
+3
-1
@@ -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!)
|
||||
|
||||
Reference in New Issue
Block a user