From a49d239a70e4e512b4b15f6289df2428d96ca77b Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Mon, 13 Jan 2014 02:34:51 +0000 Subject: [PATCH] Userlist isn't loaded unless it's in YAML. --- src/api/api.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/api/api.cpp b/src/api/api.cpp index 8ee77a27..8b3c4c73 100644 --- a/src/api/api.cpp +++ b/src/api/api.cpp @@ -275,8 +275,10 @@ BOSS_API unsigned int boss_load_lists (boss_db db, const char * const masterlist if (userlistPath != NULL) { try { - YAML::Node tempNode = YAML::LoadFile(userlistPath); - userTemp = tempNode["plugins"].as< std::list >(); + if (boost::algorithm::iends_with(userlistPath, ".yaml")) { + YAML::Node tempNode = YAML::LoadFile(userlistPath); + userTemp = tempNode["plugins"].as< std::list >(); + } } catch (YAML::Exception& e) { extMessageStr = e.what();