Skip to content

Commit

Permalink
Fix duplicated messages (sshchat). Fixes #950 (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim authored Feb 2, 2020
1 parent b85bae3 commit 1bf46b7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bridge/sshchat/sshchat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1bf46b7

Please sign in to comment.