forked from jshiffer/matterbridge
Do not use API functions in webhook (slack). Closes #110
This commit is contained in:
parent
77f1a959c3
commit
b3c3142bb2
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user