fix: don't post contents of unknown commands to chat (#6272)

This commit is contained in:
pajlada
2025-06-15 15:46:24 +02:00
committed by GitHub
parent 7f9dfd4aea
commit f26d6d57de
9 changed files with 126 additions and 20 deletions
+15
View File
@@ -283,6 +283,21 @@ void Settings::disableSave()
this->disableSaving = true;
}
bool Settings::shouldSendHelixChat() const
{
switch (this->chatSendProtocol.getEnum())
{
case ChatSendProtocol::Helix:
return true;
case ChatSendProtocol::Default:
case ChatSendProtocol::IRC:
return false;
default:
assert(false && "Invalid chat protocol value");
return false;
}
}
float Settings::getClampedUiScale() const
{
return std::clamp(this->uiScale.getValue(), 0.2F, 10.F);