5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-09-19 15:49:36 +00:00

Ignore messages from ourself. (sshchat) Closes #439

This commit is contained in:
Wim 2018-06-06 00:51:42 +02:00
parent 91db63294c
commit e307069d62

View File

@ -120,6 +120,10 @@ func (b *Bsshchat) handleSshChat() error {
wait := true
for {
if b.r.Scan() {
// ignore messages from ourselves
if !strings.Contains(b.r.Text(), "\033[K") {
continue
}
res := strings.Split(stripPrompt(b.r.Text()), ":")
if res[0] == "-> Set theme" {
wait = false