Issue #28 work. Bash Tags now have their conditions recorded.

This commit is contained in:
WrinklyNinja
2013-07-26 15:59:55 +01:00
parent de98367c36
commit 1df6e63ea8
+4 -4
View File
@@ -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);