summaryrefslogtreecommitdiffstats
path: root/bridge/xmpp/xmpp.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-01-14 23:43:34 +0100
committerWim <wim@42.be>2018-01-14 23:43:34 +0100
commite1dc3032c1d4585ce072524b2b32ea75f851a914 (patch)
treeab75e6a6be431625761540d033e602f49700f459 /bridge/xmpp/xmpp.go
parent5de03b8921e3373d462c83def51b17f0adedaeeb (diff)
downloadmatterbridge-msglm-e1dc3032c1d4585ce072524b2b32ea75f851a914.tar.gz
matterbridge-msglm-e1dc3032c1d4585ce072524b2b32ea75f851a914.tar.bz2
matterbridge-msglm-e1dc3032c1d4585ce072524b2b32ea75f851a914.zip
Ignore <subject> messages (xmpp). #272
Diffstat (limited to 'bridge/xmpp/xmpp.go')
-rw-r--r--bridge/xmpp/xmpp.go2
1 files changed, 1 insertions, 1 deletions
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, "</subject>") {
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 {