mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-23 19:52:41 +01:00
Ignore messages from ourself. (sshchat) Closes #439
This commit is contained in:
parent
91db63294c
commit
e307069d62
@ -120,6 +120,10 @@ func (b *Bsshchat) handleSshChat() error {
|
|||||||
wait := true
|
wait := true
|
||||||
for {
|
for {
|
||||||
if b.r.Scan() {
|
if b.r.Scan() {
|
||||||
|
// ignore messages from ourselves
|
||||||
|
if !strings.Contains(b.r.Text(), "\033[K") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
res := strings.Split(stripPrompt(b.r.Text()), ":")
|
res := strings.Split(stripPrompt(b.r.Text()), ":")
|
||||||
if res[0] == "-> Set theme" {
|
if res[0] == "-> Set theme" {
|
||||||
wait = false
|
wait = false
|
||||||
|
Loading…
Reference in New Issue
Block a user