Browse Source

Replace stupid nicknames.

Chris Rhodes 8 years ago
parent
commit
98bf6b57d3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      message.go

+ 2 - 0
message.go

@@ -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
 }