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,12 +67,15 @@ int CmdUntag (
database.modifyInterval (tracked[tracked.size () - id], i); database.modifyInterval (tracked[tracked.size () - id], i);
// Feedback. // Feedback.
if (rules.getBoolean ("verbose"))
{
std::cout << "Removed"; std::cout << "Removed";
for (auto& tag : tags) for (auto& tag : tags)
std::cout << ' ' << quoteIfNeeded (tag); std::cout << ' ' << quoteIfNeeded (tag);
std::cout << " from @" << id << '\n'; std::cout << " from @" << id << '\n';
} }
} }
}
return 0; return 0;
} }