remove duplicate code (#585)
This commit is contained in:
@@ -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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user