From 42f68d83c22a9e318ff722a4f5e66f405aad8b5a Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 1 Nov 2020 23:58:58 +0100 Subject: rust: Bel and highlight on error --- rust/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust/src/main.rs b/rust/src/main.rs index 8c7e617..5806ae0 100644 --- a/rust/src/main.rs +++ b/rust/src/main.rs @@ -448,6 +448,8 @@ impl App { match parsed { Err(msg) => { if room == *STATUS_ROOM { + bel::bel(); + self.add_room_highlight(&STATUS_ROOM).await.unwrap(); self.append_history_item(&STATUS_ROOM, HItem::Service("Cannot send messages in this magic status room".to_string(), true) ).await.unwrap(); @@ -477,6 +479,8 @@ impl App { } Ok((cmd, _)) => { + bel::bel(); + self.add_room_highlight(&STATUS_ROOM).await.unwrap(); self.append_history_item(&STATUS_ROOM, HItem::Service(format!("Unknown command: '{}'", cmd), true)).await?; } } -- cgit v1.2.3