From ad78007cd4392c44903e17746cb3004429e98263 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Tue, 31 Jan 2023 16:53:20 -0500 Subject: [PATCH] fix bad check condition for grant-tg (still need to implement the meat of this); --- network/RemoteControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/RemoteControl.cpp b/network/RemoteControl.cpp index 2ef96871..9a1d56d7 100644 --- a/network/RemoteControl.cpp +++ b/network/RemoteControl.cpp @@ -1306,7 +1306,7 @@ std::string RemoteControl::rcdPermitTG(std::vector args, Host* host std::string RemoteControl::rcdGrantTG(std::vector args, Host* host, dmr::Control* dmr, p25::Control* p25, nxdn::Control* nxdn) { std::string reply = ""; - if (!host->m_authoritative && (host->m_dmrCtrlChannel || host->m_p25CtrlChannel || host->m_nxdnCtrlChannel)) { + if (host->m_authoritative && (host->m_dmrCtrlChannel || host->m_p25CtrlChannel || host->m_nxdnCtrlChannel)) { reply = RCON_CMD_NACK "Host is authoritative, cannot grant TG!"; LogError(LOG_RCON, reply.c_str()); return reply;