1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 07:56:37 +02:00

Allow ; and } in quoted strings

This commit is contained in:
Adam
2012-09-07 05:59:28 -04:00
parent 02d943bfb0
commit 3c63e44d32
+7 -3
View File
@@ -1694,9 +1694,7 @@ void ServerConfig::LoadConf(ConfigurationFile &file)
// Terminate word
in_word = false;
}
else if (!in_word && ch == ';')
;
else if (ch == '}')
else if (ch == ';' || ch == '}')
;
else
{
@@ -1711,6 +1709,12 @@ void ServerConfig::LoadConf(ConfigurationFile &file)
if (ch == ';' || ch == '}' || c + 1 == len)
{
bool eol = c + 1 == len;
if (!eol && in_quote)
// Allow ; and } in quoted strings
continue;
if (in_quote)
{
// Quotes can span multiple lines; all we need to do is go to the next line without clearing things