From 28710d0bc7d5bd564d702953c490a865b0cc438d Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 12 Aug 2017 14:51:41 +0200 Subject: Allow a webhookurl per channel (discord). #239 --- bridge/matrix/matrix.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bridge/matrix') diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index 06359855..6cf6a566 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -63,13 +63,13 @@ func (b *Bmatrix) Disconnect() error { return nil } -func (b *Bmatrix) JoinChannel(channel string) error { - resp, err := b.mc.JoinRoom(channel, "", nil) +func (b *Bmatrix) JoinChannel(channel config.ChannelInfo) error { + resp, err := b.mc.JoinRoom(channel.Name, "", nil) if err != nil { return err } b.Lock() - b.RoomMap[resp.RoomID] = channel + b.RoomMap[resp.RoomID] = channel.Name b.Unlock() return err } -- cgit v1.2.3