osu: Make c/last/lb sensitive to replied-to messages

This commit is contained in:
Natsu Kagami 2022-11-05 16:37:17 +01:00
parent 00f8c8329e
commit 556ada2b9d
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
4 changed files with 79 additions and 14 deletions

View file

@ -108,6 +108,14 @@ pub mod builders {
self
}
pub fn maybe_mode(&mut self, mode: Option<Mode>) -> &mut Self {
if let Some(m) = mode {
self.mode(m, true)
} else {
self
}
}
pub fn mode(&mut self, mode: Mode, converted: bool) -> &mut Self {
self.mode = Some((mode, converted));
self