From 85b649bc98ebac7be503318f6c1bd009dff793cb Mon Sep 17 00:00:00 2001 From: Steve McCoy Date: Mon, 27 Nov 2017 22:09:55 -0500 Subject: [PATCH] =?UTF-8?q?Oh,=20and=20handle=20the=20plurals=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/emojifyme/emojifyme.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/emojifyme/emojifyme.go b/plugins/emojifyme/emojifyme.go index e71aede..8898b54 100644 --- a/plugins/emojifyme/emojifyme.go +++ b/plugins/emojifyme/emojifyme.go @@ -79,7 +79,7 @@ func (p *EmojifyMePlugin) Message(message msg.Message) bool { //Check to see if we can strip the trailing "es" off and get an emoji temp := strings.TrimSuffix(token, "s") if _, ok := p.Emoji[temp]; ok { - if token != "a" && token != "it" { + if temp != "a" && temp != "it" { emojied++ } tokens[i] = ":" + temp + ":s" @@ -87,7 +87,7 @@ func (p *EmojifyMePlugin) Message(message msg.Message) bool { //Check to see if we can strip the trailing "es" off and get an emoji temp := strings.TrimSuffix(token, "es") if _, ok := p.Emoji[temp]; ok { - if token != "a" && token != "it" { + if temp != "a" && temp != "it" { emojied++ } tokens[i] = ":" + temp + ":es"