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
1 changed files with 1 additions and 1 deletions

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")