CmdUntag: Obeys verbose mode

This commit is contained in:
Paul Beckingham 2016-06-11 11:06:05 -04:00
parent 1d7d951e2d
commit 4bae1941d0

View file

@ -67,10 +67,13 @@ int CmdUntag (
database.modifyInterval (tracked[tracked.size () - id], i);
// Feedback.
std::cout << "Removed";
for (auto& tag : tags)
std::cout << ' ' << quoteIfNeeded (tag);
std::cout << " from @" << id << '\n';
if (rules.getBoolean ("verbose"))
{
std::cout << "Removed";
for (auto& tag : tags)
std::cout << ' ' << quoteIfNeeded (tag);
std::cout << " from @" << id << '\n';
}
}
}