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";