From d2450c298b9b25ee27af54009cf07254818eb8b5 Mon Sep 17 00:00:00 2001 From: hemirt Date: Sat, 7 Jul 2018 22:30:19 +0200 Subject: [PATCH] remove duplicate code (#585) --- src/providers/twitch/TwitchMessageBuilder.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index ace42a4e2..e54d71202 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -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; }