mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 21:50:28 +00:00
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")
|
flog.Debug("Start listening for Slack messages")
|
||||||
for message := range mchan {
|
for message := range mchan {
|
||||||
// do not send messages from ourself
|
// do not send messages from ourself
|
||||||
if message.Username == b.si.User.Name {
|
if b.Config.UseAPI && message.Username == b.si.User.Name {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
texts := strings.Split(message.Text, "\n")
|
texts := strings.Split(message.Text, "\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user