diff options
Diffstat (limited to 'bridge/mattermost')
-rw-r--r-- | bridge/mattermost/mattermost.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 |