SSH-Chat: do not relay "Rate limiting is in effect" message

This commit is contained in:
ValdikSS
2019-01-05 16:32:32 +03:00
parent c0b59f0814
commit 52cfdadd53

View File

@@ -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