From e6b1174bd70e5f4442b6decfd5e72555a6c2661a Mon Sep 17 00:00:00 2001 From: Zdenek Prikryl Date: Thu, 20 Aug 2009 16:10:01 +0200 Subject: Comment cannot start in the middle of the line. Comment has to start by Char # (first char in the line) --- src/Daemon/PluginManager.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/Daemon/PluginManager.cpp') diff --git a/src/Daemon/PluginManager.cpp b/src/Daemon/PluginManager.cpp index 9bc8e6f..945d6b4 100644 --- a/src/Daemon/PluginManager.cpp +++ b/src/Daemon/PluginManager.cpp @@ -376,21 +376,16 @@ bool CPluginManager::LoadPluginSettings(const std::string& pPath, map_plugin_set { continue; } - if (line[ii] == '#' && !in_quote) + if (line[ii] == '#' && !in_quote && key == "") { break; } - else if (line[ii] == '=' && !in_quote) + if (line[ii] == '=' && !in_quote) { is_value = true; + continue; } - else if (line[ii] == '=' && is_value && !in_quote) - { - key = ""; - value = ""; - break; - } - else if (!is_value) + if (!is_value) { key += line[ii]; } -- cgit