mirror of
https://github.com/anope/anope.git
synced 2026-06-12 17:24:49 +02:00
Fix showing tags in the protocoldebug output for sent messages.
This commit is contained in:
+8
-4
@@ -83,13 +83,17 @@ void Uplink::SendInternal(const Anope::map<Anope::string> &tags, const MessageSo
|
|||||||
Log(LOG_RAWIO) << "Sent " << message;
|
Log(LOG_RAWIO) << "Sent " << message;
|
||||||
if (Anope::ProtocolDebug)
|
if (Anope::ProtocolDebug)
|
||||||
{
|
{
|
||||||
if (tags.empty())
|
auto sent_tag = false;
|
||||||
Log() << "\tNo tags";
|
for (const auto &[tname, tvalue] : tags)
|
||||||
else
|
|
||||||
{
|
{
|
||||||
for (const auto &[tname, tvalue] : tags)
|
if (IRCD->IsTagValid(tname, tvalue))
|
||||||
|
{
|
||||||
Log() << "\tTag " << tname << ": " << tvalue;
|
Log() << "\tTag " << tname << ": " << tvalue;
|
||||||
|
sent_tag = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
if (!sent_tag)
|
||||||
|
Log() << "\tNo tags";
|
||||||
|
|
||||||
if (source.GetSource().empty())
|
if (source.GetSource().empty())
|
||||||
Log() << "\tNo source";
|
Log() << "\tNo source";
|
||||||
|
|||||||
Reference in New Issue
Block a user