From 6c6000dbbdda8d77b2a700bc9cca40052942ea42 Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 15 Aug 2016 18:49:17 +0200 Subject: Update code to mattermost 3.3.0 API changes --- bridge/mattermost/mattermost.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bridge/mattermost') diff --git a/bridge/mattermost/mattermost.go b/bridge/mattermost/mattermost.go index b4057d57..63f38dc5 100644 --- a/bridge/mattermost/mattermost.go +++ b/bridge/mattermost/mattermost.go @@ -154,8 +154,9 @@ func (b *Bmattermost) handleMatter() { func (b *Bmattermost) handleMatterClient(mchan chan *MMMessage) { for message := range b.mc.MessageChan { // do not post our own messages back to irc - if message.Raw.Action == "posted" && b.mc.User.Username != message.Username { + if message.Raw.Event == "posted" && b.mc.User.Username != message.Username { flog.mm.Debugf("receiving from matterclient %#v", message) + flog.mm.Debugf("receiving from matterclient %#v", message.Raw) m := &MMMessage{} m.Username = message.Username m.Channel = message.Channel -- cgit v1.2.3