From 834ad7a58f5b22375a10db1483f5cdbb09050360 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 22 Feb 2019 13:05:38 +0100 Subject: [PATCH] TagPrint: omit tags which were disabled by the client Closes #471 --- src/TagPrint.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); }