summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-08-15 18:49:17 +0200
committerWim <wim@42.be>2016-08-15 18:49:17 +0200
commit6c6000dbbdda8d77b2a700bc9cca40052942ea42 (patch)
treea8dc7268d5420a18bf4037f7eac9bfba2b39af26 /bridge
parent24defcb970838133eb82f4fbbc516630fb81cae6 (diff)
downloadmatterbridge-msglm-6c6000dbbdda8d77b2a700bc9cca40052942ea42.tar.gz
matterbridge-msglm-6c6000dbbdda8d77b2a700bc9cca40052942ea42.tar.bz2
matterbridge-msglm-6c6000dbbdda8d77b2a700bc9cca40052942ea42.zip
Update code to mattermost 3.3.0 API changes
Diffstat (limited to 'bridge')
-rw-r--r--bridge/mattermost/mattermost.go3
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