]> Sergey Matveev's repositories - vors.git/blobdiff - cmd/client/main.go
Print alert/bell character at important events
[vors.git] / cmd / client / main.go
index 881f5741cd1bdcbdd0bdc1d88c08bc036a1cbc2da45a4089542783d2570e4f44..e4288b9350d86b2ad24e86117badd8c44aa10a04d452684b9e0d5c5431e17dc9 100644 (file)
@@ -418,6 +418,7 @@ Magenta "S" means that peer is locally muted.`)
                        case vors.CmdAdd:
                                sidRaw, name, key := args[1], args[2], args[3]
                                sid := sidRaw[0]
+                               printBell()
                                log.Println("add", string(name), "sid:", sid)
                                keyCiph, keyMAC := key[:chacha20.KeySize], key[chacha20.KeySize:]
                                stream := &Stream{
@@ -568,6 +569,7 @@ Magenta "S" means that peer is locally muted.`)
                                        log.Println("unknown sid:", sid)
                                        continue
                                }
+                               printBell()
                                log.Println("del", s.name, "sid:", sid)
                                StreamsM.Lock()
                                delete(Streams, sid)
@@ -597,6 +599,7 @@ Magenta "S" means that peer is locally muted.`)
                                        log.Println("unknown sid:", sid)
                                        continue
                                }
+                               printBell()
                                log.Println(s.name, ":", string(args[2]))
                        default:
                                log.Fatal("unexpected cmd:", cmd)