2
0
mirror of https://github.com/42wim/matterbridge synced 2024-11-11 01:10:38 +00:00

Do not use API functions in webhook (slack). Closes #110

This commit is contained in:
Wim 2017-01-12 00:40:50 +01:00
parent 77f1a959c3
commit b3c3142bb2

View File

@ -159,7 +159,7 @@ func (b *Bslack) handleSlack() {
flog.Debug("Start listening for Slack messages")
for message := range mchan {
// do not send messages from ourself
if message.Username == b.si.User.Name {
if b.Config.UseAPI && message.Username == b.si.User.Name {
continue
}
texts := strings.Split(message.Text, "\n")