Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Commit

Permalink
goapp-release: fix message filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ucirello committed Mar 14, 2016
1 parent d5bd055 commit d4a5f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/gochatbot-plugin-goapp-release/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (r GoAppReleasePlugin) helpMessage() string {
func (r *GoAppReleasePlugin) parseMessage(in *messages.Message) error {
msg := strings.TrimSpace(in.Message)
checkPrefix := r.botName + " release "
if msg == "" || (strings.HasPrefix(msg, r.botName) && !strings.HasPrefix(msg, checkPrefix)) {
if msg == "" || !strings.HasPrefix(msg, checkPrefix) {
return nil
}

Expand Down

0 comments on commit d4a5f05

Please sign in to comment.