mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-06-26 18:59:24 +00:00
Ignore messages from ourself. (sshchat) Closes #439
This commit is contained in:
@ -120,6 +120,10 @@ func (b *Bsshchat) handleSshChat() error {
|
||||
wait := true
|
||||
for {
|
||||
if b.r.Scan() {
|
||||
// ignore messages from ourselves
|
||||
if !strings.Contains(b.r.Text(), "\033[K") {
|
||||
continue
|
||||
}
|
||||
res := strings.Split(stripPrompt(b.r.Text()), ":")
|
||||
if res[0] == "-> Set theme" {
|
||||
wait = false
|
||||
|
Reference in New Issue
Block a user