|
@ -856,24 +856,25 @@ int Jupiter::IRC::Client::primaryHandler() |
|
|
size_t offset; |
|
|
size_t offset; |
|
|
|
|
|
|
|
|
unsigned int i = 1; |
|
|
unsigned int i = 1; |
|
|
while (true) |
|
|
Jupiter::ReferenceString value; |
|
|
|
|
|
auto config_loop_condition = [&] |
|
|
{ |
|
|
{ |
|
|
offset = key.aformat("%u", i); |
|
|
offset = key.aformat("%u", i); |
|
|
const Jupiter::ReadableString &value = Jupiter::IRC::Client::readConfigValue(key); |
|
|
value = Jupiter::IRC::Client::readConfigValue(key); |
|
|
if (value.isEmpty()) break; |
|
|
return !value.isEmpty(); |
|
|
|
|
|
}; |
|
|
|
|
|
while (config_loop_condition()) |
|
|
|
|
|
{ |
|
|
key.truncate(offset); |
|
|
key.truncate(offset); |
|
|
Jupiter::IRC::Client::send(value); |
|
|
Jupiter::IRC::Client::send(value); |
|
|
i++; |
|
|
i++; |
|
|
} |
|
|
} |
|
|
key = "Channel."; |
|
|
key = "Channel."; |
|
|
i = 1; |
|
|
i = 1; |
|
|
while (true) |
|
|
while (config_loop_condition()) |
|
|
{ |
|
|
{ |
|
|
offset = key.aformat("%u", i); |
|
|
|
|
|
const Jupiter::ReadableString &tVal = Jupiter::IRC::Client::readConfigValue(key); |
|
|
|
|
|
if (tVal.isEmpty()) break; |
|
|
|
|
|
key.truncate(offset); |
|
|
key.truncate(offset); |
|
|
Jupiter::IRC::Client::joinChannel(tVal); |
|
|
Jupiter::IRC::Client::joinChannel(value); |
|
|
i++; |
|
|
i++; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|