Replace stupid nicknames.

This commit is contained in:
Chris Rhodes 2016-04-29 19:03:14 -07:00
parent 4cac19c3f9
commit 98bf6b57d3

View file

@ -77,6 +77,8 @@ func (m *Message) ContentWithMentionsReplaced() string {
for _, user := range m.Mentions {
content = strings.Replace(content, fmt.Sprintf("<@%s>", user.ID),
fmt.Sprintf("@%s", user.Username), -1)
content = strings.Replace(content, fmt.Sprintf("<@!%s>", user.ID),
fmt.Sprintf("@%s", user.Username), -1)
}
return content
}