config: fixup usage of plugin in handles

would filter calls to keyword plugin: and stuff
This commit is contained in:
Vaxry 2023-10-29 22:35:26 +00:00
parent 935c90915a
commit 59d6a12a7e

View file

@ -1384,10 +1384,10 @@ std::string CConfigManager::parseKeyword(const std::string& COMMAND, const std::
handleBlurLS(COMMAND, VALUE);
else if (COMMAND == "wsbind")
handleBindWS(COMMAND, VALUE);
else if (COMMAND == "plugin")
handlePlugin(COMMAND, VALUE);
else if (COMMAND.starts_with("env"))
handleEnv(COMMAND, VALUE);
else if (COMMAND.starts_with("plugin"))
handlePlugin(COMMAND, VALUE);
else {
// try config
const auto IT = std::find_if(pluginKeywords.begin(), pluginKeywords.end(), [&](const auto& other) { return other.name == COMMAND; });