remove duplicate code (#585)

This commit is contained in:
hemirt 2018-07-07 22:30:19 +02:00 committed by pajlada
parent ebc47b1463
commit d2450c298b

View file

@ -73,17 +73,6 @@ bool TwitchMessageBuilder::isIgnored() const
}
}
if (app->settings->enableTwitchIgnoredUsers && this->tags.contains("user-id")) {
auto sourceUserID = this->tags.value("user-id").toString();
for (const auto &user : app->accounts->twitch.getCurrent()->getIgnores()) {
if (sourceUserID == user.id) {
Log("Blocking message because it's from blocked user {}", user.name);
return true;
}
}
}
return false;
}