Add colon to the emote trim cutset

This enables parsing emotes in the format :emote: as defined in #9.
This does not add auto-complete, just brings emote parsing up to date.
This commit is contained in:
Zorchenhimer 2019-03-26 12:27:03 -04:00
parent d2b8f3d7be
commit f5ea701127
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@ var Emotes map[string]string
func ParseEmotesArray(words []string) []string { func ParseEmotesArray(words []string) []string {
newWords := []string{} newWords := []string{}
for _, word := range words { for _, word := range words {
word = strings.Trim(word, "[]") // make :emote: and [emote] valid for replacement.
word = strings.Trim(word, ":[]")
found := false found := false
for key, val := range Emotes { for key, val := range Emotes {