Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 9085fd84e99ebe780ad2abe1913565bef76f56e6 Author: Wim <wim@42.be> Date: Sun Feb 02 22:08:37 2020 +0000 Fix duplicated messages (sshchat). Fixes #950 (#996) diff --git a/bridge/sshchat/sshchat.go b/bridge/sshchat/sshchat.go index 3a4512c..6b78c22 100644 --- a/bridge/sshchat/sshchat.go +++ b/bridge/sshchat/sshchat.go @@ -1306 +13010 @@ 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