From 0163d92b1d16667886fd5a9c181795b50bea8537 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 9 Jun 2026 23:23:18 +0100 Subject: [PATCH] Fix showing tags in the protocoldebug output for sent messages. --- src/uplink.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/uplink.cpp b/src/uplink.cpp index 80511fe38..c43fd770a 100644 --- a/src/uplink.cpp +++ b/src/uplink.cpp @@ -83,13 +83,17 @@ void Uplink::SendInternal(const Anope::map &tags, const MessageSo Log(LOG_RAWIO) << "Sent " << message; if (Anope::ProtocolDebug) { - if (tags.empty()) - Log() << "\tNo tags"; - else + auto sent_tag = false; + for (const auto &[tname, tvalue] : tags) { - for (const auto &[tname, tvalue] : tags) + if (IRCD->IsTagValid(tname, tvalue)) + { Log() << "\tTag " << tname << ": " << tvalue; + sent_tag = true; + } } + if (!sent_tag) + Log() << "\tNo tags"; if (source.GetSource().empty()) Log() << "\tNo source";