mirror of
https://github.com/Syping/dtranslatebot.git
synced 2025-09-11 11:16:38 +02:00
comment unused code, dont overwrite source language
This commit is contained in:
parent
10135e6ec1
commit
f74e354901
5 changed files with 10 additions and 1 deletions
|
@ -32,7 +32,8 @@ void process_database_channels(std::shared_ptr<bot::database::database> database
|
|||
for (auto channel = guild->channel.begin(); channel != guild->channel.end(); channel++) {
|
||||
if (channel->id == *db_channel_id) {
|
||||
const bot::settings::channel db_channel = database->get_channel(guild->id, channel->id);
|
||||
channel->source = db_channel.source;
|
||||
if (!db_channel.source.empty())
|
||||
channel->source = db_channel.source;
|
||||
for (auto db_target = db_channel.targets.begin(); db_target != db_channel.targets.end(); db_target++) {
|
||||
bool target_found = false;
|
||||
for (auto target = channel->targets.begin(); target != channel->targets.end(); target++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue