reworked broadcaster check in identity

This commit is contained in:
ModulatingForce 2024-03-23 14:00:02 -04:00
parent a35b22d681
commit f4575f01ee

View file

@ -1328,22 +1328,19 @@ impl IdentityManager {
// Checks if broadcaster
let channel_out = match channel {
Some(channel_tmp) => {
match channel_tmp {
Channel(channel_tmp) => {
Some(chnl) => {
// In this block, Some input channel is given
// We're comparing the channel name with chattername to determine if they're a broadcaster
if chattername == channel_tmp.to_lowercase() {
if chattername == chnl.0
{
evalsproles.push(UserRole::Broadcaster);
}
Some(Channel::construct(channel_tmp))
} // _ => ()
}
}
Some(chnl)
},
None => None,
};
let rolesdb = Arc::clone(&self.special_roles_users);
let rolesdb_lock = rolesdb.read().await;