5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-21 22:50:27 +00:00

Fix duplicated messages (sshchat). Fixes #950 (#996)

This commit is contained in:
Wim 2020-02-02 22:08:37 +01:00 committed by GitHub
parent b85bae31d9
commit 1bf46b7711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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