diff options
author | Wim <wim@42.be> | 2017-02-17 23:13:02 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-02-17 23:13:02 +0100 |
commit | 072cac0347c9a4448d831e616ac157be8aa07690 (patch) | |
tree | 939a3294b549e12df19502d2f70ef9869c12b9c7 | |
parent | 956d7cf3f31ea949a34537ff2f08a6b9f5918b6c (diff) | |
download | matterbridge-msglm-072cac0347c9a4448d831e616ac157be8aa07690.tar.gz matterbridge-msglm-072cac0347c9a4448d831e616ac157be8aa07690.tar.bz2 matterbridge-msglm-072cac0347c9a4448d831e616ac157be8aa07690.zip |
Do not relay slackbot messages (slack). Closes #119
-rw-r--r-- | bridge/slack/slack.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 0f8806a2..7d8c7812 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -245,6 +245,9 @@ func (b *Bslack) handleMatterHook(mchan chan *MMMessage) { m.Text = message.Text m.Text = b.replaceMention(m.Text) m.Channel = message.ChannelName + if m.Username == "slackbot" { + continue + } mchan <- m } } |