Compare commits
2 Commits
581a747cac
...
6529fa02b5
| Author | SHA1 | Date | |
|---|---|---|---|
| 6529fa02b5 | |||
| b2222384f5 |
@@ -169,7 +169,9 @@ async fn get_heat(
|
||||
}
|
||||
}
|
||||
|
||||
if bot_owner.is_some() {
|
||||
let bot_owner_might_be_listening = bot_owner.is_some_and(|user_data| matches!(user_data.headphone, Headphone::Undeafened));
|
||||
|
||||
if bot_owner_might_be_listening {
|
||||
heat = heat.min(999);
|
||||
}
|
||||
|
||||
@@ -249,7 +251,7 @@ async fn map_heat(
|
||||
let mut changed = false;
|
||||
for (&channel, &heat) in &*channel_heat_watcher.borrow() {
|
||||
let existing = heat_map.insert(heat, channel);
|
||||
if existing.map_or(true, |(old_heat, old_channel)| {
|
||||
if existing.is_none_or(|(old_heat, old_channel)| {
|
||||
old_heat != heat || channel != old_channel
|
||||
}) {
|
||||
changed = true;
|
||||
|
||||
Reference in New Issue
Block a user