fix bad check condition for grant-tg (still need to implement the meat of this);

3.0-rcon_maint 2023-02-04
Bryan Biedenkapp 3 years ago
parent 2cd6cd4c37
commit ad78007cd4

@ -1306,7 +1306,7 @@ std::string RemoteControl::rcdPermitTG(std::vector<std::string> args, Host* host
std::string RemoteControl::rcdGrantTG(std::vector<std::string> args, Host* host, dmr::Control* dmr, p25::Control* p25, nxdn::Control* nxdn) std::string RemoteControl::rcdGrantTG(std::vector<std::string> args, Host* host, dmr::Control* dmr, p25::Control* p25, nxdn::Control* nxdn)
{ {
std::string reply = ""; 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!"; reply = RCON_CMD_NACK "Host is authoritative, cannot grant TG!";
LogError(LOG_RCON, reply.c_str()); LogError(LOG_RCON, reply.c_str());
return reply; return reply;

Loading…
Cancel
Save

Powered by TurnKey Linux.