diff --git a/mm-go-irckit/userbridge.go b/mm-go-irckit/userbridge.go index a5c4b048..7e8ffd0a 100644 --- a/mm-go-irckit/userbridge.go +++ b/mm-go-irckit/userbridge.go @@ -874,7 +874,7 @@ func (u *User) loginTo(protocol string) error { u.br, err = slack.New(u.v, u.Credentials, u.eventChan, u.addUsersToChannels) case "mattermost": u.eventChan = make(chan *bridge.Event) - if u.v.GetBool("mattermost.ignoreserverversion") || strings.HasPrefix(u.getMattermostVersion(), "7.") || strings.HasPrefix(u.getMattermostVersion(), "8.") { + if u.v.GetBool("mattermost.ignoreserverversion") || strings.HasPrefix(u.getMattermostVersion(), "7.") || strings.HasPrefix(u.getMattermostVersion(), "8.") || strings.HasPrefix(u.getMattermostVersion(), "9.") { u.br, _, err = mattermost.New(u.v, u.Credentials, u.eventChan, u.addUsersToChannels) } else { return fmt.Errorf("mattermost version %s not supported", u.getMattermostVersion())