Apply TTS skips from message deletion & bans when merging with other chats. Fixed group permissions.

This commit is contained in:
Tom
2024-08-06 22:50:45 +00:00
parent 8a0e55bb95
commit ed68cc47e6
3 changed files with 49 additions and 19 deletions

View File

@ -36,16 +36,16 @@ namespace TwitchChatTTS.Chat.Groups.Permissions
public bool? CheckIfAllowed(IEnumerable<string> groups, string path)
{
bool overall = true;
bool overall = false;
foreach (var group in groups)
{
var result = CheckIfAllowed($"{group}.{path}");
if (result == true)
return true;
if (result == false)
overall = false;
return false;
if (result == true)
overall = true;
}
return overall ? null : false;
return overall ? true : null;
}
public bool? CheckIfDirectAllowed(IEnumerable<string> groups, string path)