summaryrefslogtreecommitdiffstats
path: root/bridge/xmpp/xmpp.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-08-12 14:51:41 +0200
committerWim <wim@42.be>2017-08-12 14:51:41 +0200
commit28710d0bc7d5bd564d702953c490a865b0cc438d (patch)
treed025fe274779881442a1cf14d62ec2d42671cc3c /bridge/xmpp/xmpp.go
parentad4d461606b5fb9b64377c8ef37110ee0b3c721b (diff)
downloadmatterbridge-msglm-28710d0bc7d5bd564d702953c490a865b0cc438d.tar.gz
matterbridge-msglm-28710d0bc7d5bd564d702953c490a865b0cc438d.tar.bz2
matterbridge-msglm-28710d0bc7d5bd564d702953c490a865b0cc438d.zip
Allow a webhookurl per channel (discord). #239
Diffstat (limited to 'bridge/xmpp/xmpp.go')
-rw-r--r--bridge/xmpp/xmpp.go4
1 files changed, 2 insertions, 2 deletions
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
}