Properly return when unexpected topic/purpose message format.

This commit is contained in:
Patrick Connolly
2018-11-20 22:40:24 +08:00
parent 5d5dc47d25
commit bc0d0efe66

View File

@@ -332,6 +332,7 @@ func (b *Bslack) updateTopicOrPurpose(msg *config.Message, channelInfo *slack.Ch
updateFunc = b.rtm.SetPurposeOfConversation
default:
b.Log.Errorf("Unhandled type received from extractTopicOrPurpose: %s", incomingChangeType)
return true, nil
}
for {
_, err := updateFunc(channelInfo.ID, text)