summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-02-22 13:05:38 +0100
committerMax Kellermann <max@musicpd.org>2019-02-22 13:05:38 +0100
commit834ad7a58f5b22375a10db1483f5cdbb09050360 (patch)
tree01762cada9a5fa8d711c6cc33a64babecab600a8
parente8f2f980488318fb0e37c1fe6bc1300e97327b6e (diff)
TagPrint: omit tags which were disabled by the client
Closes #471
-rw-r--r--src/TagPrint.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TagPrint.cxx b/src/TagPrint.cxx
index 7261a4f30..412098a97 100644
--- a/src/TagPrint.cxx
+++ b/src/TagPrint.cxx
@@ -25,8 +25,9 @@
void
tag_print_types(Response &r) noexcept
{
+ const auto tag_mask = global_tag_mask & r.GetTagMask();
for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++)
- if (IsTagEnabled(i))
+ if (tag_mask.Test(TagType(i)))
r.Format("tagtype: %s\n", tag_item_names[i]);
}