mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Issue #28 work. Bash Tags now have their conditions recorded.
This commit is contained in:
@@ -324,13 +324,13 @@ namespace boss {
|
||||
while (pos2 != std::string::npos) {
|
||||
name = boost::algorithm::trim_copy(addedList.substr(pos1,pos2-pos1));
|
||||
if (tags.find(Tag(name)) == tags.end())
|
||||
tags.insert(Tag(name));
|
||||
tags.insert(Tag(name, true, it->Condition()));
|
||||
pos1 = pos2+1;
|
||||
pos2 = addedList.find(",", pos1);
|
||||
}
|
||||
name = boost::algorithm::trim_copy(addedList.substr(pos1));
|
||||
if (tags.find(Tag(name)) == tags.end())
|
||||
tags.insert(Tag(name));
|
||||
tags.insert(Tag(name, true, it->Condition()));
|
||||
}
|
||||
|
||||
if (!removedList.empty()) {
|
||||
@@ -340,13 +340,13 @@ namespace boss {
|
||||
while (pos2 != std::string::npos) {
|
||||
name = boost::algorithm::trim_copy(removedList.substr(pos1,pos2-pos1));
|
||||
if (tags.find(Tag(name, false)) == tags.end())
|
||||
tags.insert(Tag(name, false));
|
||||
tags.insert(Tag(name, false, it->Condition()));
|
||||
pos1 = pos2+1;
|
||||
pos2 = removedList.find(",", pos1);
|
||||
}
|
||||
name = boost::algorithm::trim_copy(removedList.substr(pos1));
|
||||
if (tags.find(Tag(name, false)) == tags.end())
|
||||
tags.insert(Tag(name, false));
|
||||
tags.insert(Tag(name, false, it->Condition()));
|
||||
}
|
||||
|
||||
it = messages.erase(it);
|
||||
|
||||
Reference in New Issue
Block a user