potential empty channel fix

master
const an teen 2021-12-05 11:29:44 -05:00
parent fadcf8a325
commit f838874141
1 changed files with 1 additions and 0 deletions

View File

@ -224,6 +224,7 @@ void ApplicationData::readConfig()
}
newConnection.channels = channelsString.split(',');
for (auto &ch: newConnection.channels) {
if (ch.isEmpty()) continue;
ch.remove(' ');
if (not ch.startsWith('#')) {
ch = '#' + ch;