summaryrefslogtreecommitdiff
path: root/src/TagPrint.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-02-07 16:52:59 +0100
committerMax Kellermann <max@musicpd.org>2017-02-08 09:06:11 +0100
commit29453ba196db55816ee10fa9908c3e3fa0acd40f (patch)
tree894470833ed3f549a6ab4458a734ba8657c771c4 /src/TagPrint.cxx
parent599d77643b57246dc877a2bbf65b932575fbf2c7 (diff)
client: add tag_mask attribute
The "tagtypes" command now has several sub commands which can be used to edit that mask.
Diffstat (limited to 'src/TagPrint.cxx')
-rw-r--r--src/TagPrint.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/TagPrint.cxx b/src/TagPrint.cxx
index 1406f669b..61d86a12e 100644
--- a/src/TagPrint.cxx
+++ b/src/TagPrint.cxx
@@ -40,8 +40,10 @@ tag_print(Response &r, TagType type, const char *value)
void
tag_print_values(Response &r, const Tag &tag)
{
+ const auto tag_mask = r.GetTagMask();
for (const auto &i : tag)
- tag_print(r, i.type, i.value);
+ if (tag_mask.Test(i.type))
+ tag_print(r, i.type, i.value);
}
void