Properly return when unexpected topic/purpose message format.
This commit is contained in:
@@ -332,6 +332,7 @@ func (b *Bslack) updateTopicOrPurpose(msg *config.Message, channelInfo *slack.Ch
|
|||||||
updateFunc = b.rtm.SetPurposeOfConversation
|
updateFunc = b.rtm.SetPurposeOfConversation
|
||||||
default:
|
default:
|
||||||
b.Log.Errorf("Unhandled type received from extractTopicOrPurpose: %s", incomingChangeType)
|
b.Log.Errorf("Unhandled type received from extractTopicOrPurpose: %s", incomingChangeType)
|
||||||
|
return true, nil
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
_, err := updateFunc(channelInfo.ID, text)
|
_, err := updateFunc(channelInfo.ID, text)
|
||||||
|
|||||||
Reference in New Issue
Block a user