mirror of https://github.com/velour/catbase.git
emojify: add direct eq
This commit is contained in:
parent
2aaf18518a
commit
adb0eb9f45
|
@ -78,7 +78,8 @@ func (p *EmojifyMePlugin) Message(message msg.Message) bool {
|
||||||
for _, c := range candidates {
|
for _, c := range candidates {
|
||||||
if strings.Contains(msg, " "+c+" ") ||
|
if strings.Contains(msg, " "+c+" ") ||
|
||||||
strings.HasPrefix(msg, c+" ") ||
|
strings.HasPrefix(msg, c+" ") ||
|
||||||
strings.HasSuffix(msg, " "+c) {
|
strings.HasSuffix(msg, " "+c) ||
|
||||||
|
msg == c {
|
||||||
emojys = append(emojys, v)
|
emojys = append(emojys, v)
|
||||||
if !stringsContain(inertTokens, k) && len(v) > 2 {
|
if !stringsContain(inertTokens, k) && len(v) > 2 {
|
||||||
emojied += 1
|
emojied += 1
|
||||||
|
|
Loading…
Reference in New Issue