Skip to content
This repository has been archived by the owner on Oct 27, 2018. It is now read-only.

Commit

Permalink
Replace spaces to underscore in botnames. Closes 42wim/matterircd#184
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Jun 11, 2018
1 parent 4a1ccae commit 666f918
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions slackuser.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ func (u *User) handleSlackActionPost(rmsg *slack.MessageEvent) {
}
}

spoofUsername = strings.Replace(spoofUsername, " ", "_", -1)
for _, m := range msgs {
// cleanup the message
m = u.replaceMention(m)
Expand Down

0 comments on commit 666f918

Please sign in to comment.