From 52cfdadd53e4c1479c8bf36eda68d2cab5a3f66a Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sat, 5 Jan 2019 16:32:32 +0300 Subject: [PATCH] SSH-Chat: do not relay "Rate limiting is in effect" message --- bridge/sshchat/sshchat.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bridge/sshchat/sshchat.go b/bridge/sshchat/sshchat.go index 905ae4c5..5a8029cf 100644 --- a/bridge/sshchat/sshchat.go +++ b/bridge/sshchat/sshchat.go @@ -128,6 +128,9 @@ func (b *Bsshchat) handleSSHChat() error { if !strings.Contains(b.r.Text(), "\033[K") { continue } + if strings.Contains(b.r.Text(), "Rate limiting is in effect") { + continue + } res := strings.Split(stripPrompt(b.r.Text()), ":") if res[0] == "-> Set theme" { wait = false