4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 21:19:22 +00:00

Allow a webhookurl per channel (discord). #239

This commit is contained in:
Wim
2017-08-12 14:51:41 +02:00
parent ad4d461606
commit 28710d0bc7
14 changed files with 100 additions and 49 deletions

View File

@ -117,8 +117,13 @@ func (b *Birc) Disconnect() error {
return nil
}
func (b *Birc) JoinChannel(channel string) error {
b.i.Join(channel)
func (b *Birc) JoinChannel(channel config.ChannelInfo) error {
if channel.Options.Key != "" {
flog.Debugf("using key %s for channel %s", channel.Options.Key, channel.Name)
b.i.Join(channel.Name + " " + channel.Options.Key)
} else {
b.i.Join(channel.Name)
}
return nil
}