1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 15:44:46 +02:00

Fix showing tags in the protocoldebug output for sent messages.

This commit is contained in:
Sadie Powell
2026-06-09 23:23:18 +01:00
parent a861a059f6
commit 0163d92b1d
+8 -4
View File
@@ -83,13 +83,17 @@ void Uplink::SendInternal(const Anope::map<Anope::string> &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";