mirror of https://notabug.org/acetone/ircabot.git
potential empty channel fix
parent
fadcf8a325
commit
f838874141
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue