Fixup last commit

This commit is contained in:
Celtic Minstrel 2018-03-24 12:42:13 -04:00
parent f7cc1842bb
commit cf385537c2

View file

@ -118,10 +118,10 @@ void event_handlers::add_event_handler(const config& cfg, bool is_menu_item)
// name field. Will be moved into the handler. // name field. Will be moved into the handler.
config event_cfg = cfg; config event_cfg = cfg;
if(!name.empty()) { // Split the name field...
// Split the name field... std::vector<std::string> standardized_names = utils::split(name);
std::vector<std::string> standardized_names = utils::split(name);
if(!name.empty()) {
// ...and standardize each one individually. This ensures they're all valid for by-name lookup. // ...and standardize each one individually. This ensures they're all valid for by-name lookup.
for(std::string& single_name : standardized_names) { for(std::string& single_name : standardized_names) {
if(!utils::might_contain_variables(single_name)) { if(!utils::might_contain_variables(single_name)) {