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/xmpp/xmpp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridge/xmpp/xmpp.go') diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index dfc2967e..56773ef5 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -74,8 +74,8 @@ func (b *Bxmpp) Disconnect() error { return nil } -func (b *Bxmpp) JoinChannel(channel string) error { - b.xc.JoinMUCNoHistory(channel+"@"+b.Config.Muc, b.Config.Nick) +func (b *Bxmpp) JoinChannel(channel config.ChannelInfo) error { + b.xc.JoinMUCNoHistory(channel.Name+"@"+b.Config.Muc, b.Config.Nick) return nil } -- cgit v1.2.3