From 1bf46b771182ae34f07d6871e3676a0588e37641 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 2 Feb 2020 22:08:37 +0100 Subject: [PATCH] Fix duplicated messages (sshchat). Fixes #950 (#996) --- bridge/sshchat/sshchat.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bridge/sshchat/sshchat.go b/bridge/sshchat/sshchat.go index 3a4512cb..6b78c223 100644 --- a/bridge/sshchat/sshchat.go +++ b/bridge/sshchat/sshchat.go @@ -130,6 +130,10 @@ func (b *Bsshchat) handleSSHChat() error { if strings.Contains(b.r.Text(), "Rate limiting is in effect") { continue } + // skip our own messages + if !strings.HasPrefix(b.r.Text(), "["+b.GetString("Nick")+"] \x1b") { + continue + } res := strings.Split(stripPrompt(b.r.Text()), ":") if res[0] == "-> Set theme" { wait = false