From e1dc3032c1d4585ce072524b2b32ea75f851a914 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 14 Jan 2018 23:43:34 +0100 Subject: Ignore messages (xmpp). #272 --- bridge/xmpp/xmpp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/xmpp/xmpp.go') diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index 9cb6f6ad..0ad7699c 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -166,7 +166,7 @@ func (b *Bxmpp) handleXmpp() error { if len(s) == 2 { 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, "") { rmsg := config.Message{Username: nick, Text: v.Text, Channel: channel, Account: b.Account, UserID: v.Remote} rmsg.Text, ok = b.replaceAction(rmsg.Text) if ok { -- cgit v1.2.3