From 676cd93bc96bdac1d69445223154cddd9fbe71e2 Mon Sep 17 00:00:00 2001
From: Stephen D <webmaster@scd31.com>
Date: Wed, 5 Oct 2022 16:47:49 -0300
Subject: [PATCH] fix bug

---
 src/handlers/react.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/handlers/react.rs b/src/handlers/react.rs
index f091ad9..b83c024 100644
--- a/src/handlers/react.rs
+++ b/src/handlers/react.rs
@@ -23,7 +23,7 @@ fn map_lookup(msg: &str) -> Option<&'static str> {
 	// We lose the O(1) benefits of the hashmap
 	// But whatever. It doesn't need to be fast
 	for (k, v) in EMOJI_MAP.entries() {
-		if msg.contains(k) {
+		if &msg == k || msg == format!("{}s", k) {
 			return Some(v);
 		}
 	}
-- 
GitLab