mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-03-03 19:44:00 +01:00
Update YSFReflectors.cpp
Account for upper case hostname matching when connecting at startup
This commit is contained in:
parent
6a0a483d9a
commit
f29925ff32
|
|
@ -277,6 +277,9 @@ CYSFReflector* CYSFReflectors::findById(const std::string& id)
|
|||
CYSFReflector* CYSFReflectors::findByName(const std::string& name)
|
||||
{
|
||||
std::string fullName = name;
|
||||
if (m_makeUpper) {
|
||||
std::transform(fullName.begin(), fullName.end(), fullName.begin(), ::toupper);
|
||||
}
|
||||
fullName.resize(16U, ' ');
|
||||
|
||||
for (std::vector<CYSFReflector*>::const_iterator it = m_currReflectors.cbegin(); it != m_currReflectors.cend(); ++it) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue