aboutsummaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-11-01 23:58:58 +0100
committerTom Smeding <tom.smeding@gmail.com>2021-01-28 22:20:13 +0100
commit42f68d83c22a9e318ff722a4f5e66f405aad8b5a (patch)
tree3335e23d47129daf00ecc3870b083b646f2b9b35 /rust
parent9d5bd561419e1145aea81ee820bc3e8405c4fd57 (diff)
rust: Bel and highlight on errorrustclient
Diffstat (limited to 'rust')
-rw-r--r--rust/src/main.rs4
1 files changed, 4 insertions, 0 deletions
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?;
}
}