Update YSFReflectors.cpp

Account for upper case hostname matching when connecting at startup
This commit is contained in:
Andy Taylor 2019-02-05 16:48:17 +00:00 committed by GitHub
parent 6a0a483d9a
commit f29925ff32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {