Browse Source

fix for 'eared on' module

master
Tom Early 12 months ago
parent
commit
c74f2ea0bc
  1. 4
      m17protocol.cpp
  2. 2
      main.h
  3. 2
      user.cpp

4
m17protocol.cpp

@ -494,7 +494,9 @@ void CM17Protocol::OnFirstPacketIn(std::unique_ptr<CPacket> &packet, const CIp &
auto from = client->GetCallsign();
if (0 == from.GetCS(4).compare("M17-"))
from.SetModule(client->GetReflectorModule());
g_Reflector.GetUsers()->Hearing(s, from);
auto ref = GetReflectorCallsign();
ref.SetModule(client->GetReflectorModule());
g_Reflector.GetUsers()->Hearing(s, from, ref);
g_Reflector.ReleaseUsers();
}

2
main.h

@ -50,7 +50,7 @@
#define VERSION_MAJOR 0
#define VERSION_MINOR 3
#define VERSION_REVISION 1
#define VERSION_REVISION 2
// global ------------------------------------------------------

2
user.cpp

@ -72,7 +72,7 @@ void CUser::WriteXml(std::ofstream &xmlFile)
xmlFile << "<STATION>" << std::endl;
xmlFile << "\t<Callsign>" << m_Source << "</Callsign>" << std::endl;
xmlFile << "\t<Via node>" << m_Destination << "</Via node>" << std::endl;
xmlFile << "\t<On module>" << m_Destination.GetModule() << "</On module>" << std::endl;
xmlFile << "\t<On module>" << m_Reflector.GetModule() << "</On module>" << std::endl;
xmlFile << "\t<Via peer>" << m_Reflector << "</Via peer>" << std::endl;
char mbstr[100];

Loading…
Cancel
Save