5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-22 10:30:26 +00:00

Ignore <subject> messages (xmpp). #272

This commit is contained in:
Wim 2018-01-14 23:43:34 +01:00
parent 5de03b8921
commit e1dc3032c1

View File

@ -166,7 +166,7 @@ func (b *Bxmpp) handleXmpp() error {
if len(s) == 2 { if len(s) == 2 {
nick = s[1] nick = s[1]
} }
if nick != b.Config.Nick && v.Stamp == nodelay && v.Text != "" { if nick != b.Config.Nick && v.Stamp == nodelay && v.Text != "" && !strings.Contains(v.Text, "</subject>") {
rmsg := config.Message{Username: nick, Text: v.Text, Channel: channel, Account: b.Account, UserID: v.Remote} rmsg := config.Message{Username: nick, Text: v.Text, Channel: channel, Account: b.Account, UserID: v.Remote}
rmsg.Text, ok = b.replaceAction(rmsg.Text) rmsg.Text, ok = b.replaceAction(rmsg.Text)
if ok { if ok {