From 258feb0173c5a5b0ca786efd6b85288f2aef3fb1 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Mon, 3 Jun 2024 17:21:49 -0400 Subject: [PATCH] put the naughty message in the right spot; --- src/fne/network/fne/TagP25Data.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fne/network/fne/TagP25Data.cpp b/src/fne/network/fne/TagP25Data.cpp index e1566c5a..03e2de8e 100644 --- a/src/fne/network/fne/TagP25Data.cpp +++ b/src/fne/network/fne/TagP25Data.cpp @@ -753,11 +753,11 @@ bool TagP25Data::processTSDUTo(uint8_t* buffer, uint32_t peerId, uint8_t duid) return false; // this will cause no TSDU to pass for this peer now...I'm not sure this is good behavior } else { - if (m_debug) { - std::string peerIdentity = m_network->resolvePeerIdentity(lookupPeerId); - LogDebug(LOG_NET, "PEER %u (%s) can fuck off there's no affiliations.", lookupPeerId, peerIdentity.c_str()); // just so Faulty can see more "salty" log messages - } if (!aff->hasGroupAff(dstId)) { + if (m_debug) { + std::string peerIdentity = m_network->resolvePeerIdentity(lookupPeerId); + LogDebug(LOG_NET, "PEER %u (%s) can fuck off there's no affiliations.", lookupPeerId, peerIdentity.c_str()); // just so Faulty can see more "salty" log messages + } return false; } }