mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Implement basic and stupid ignore functionality
We currently do not respect mod status
This commit is contained in:
parent
88e97325f8
commit
61dac49f6d
1 changed files with 11 additions and 0 deletions
|
@ -76,6 +76,17 @@ bool TwitchMessageBuilder::isIgnored() const
|
|||
}
|
||||
}
|
||||
|
||||
if (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) {
|
||||
debug::Log("Blocking message because it's from blocked user {}", user.name);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue