diff --git a/src/handlers/react.rs b/src/handlers/react.rs index f091ad98b16b7fb490c77d477628c4f83032968d..b83c0244235ec1c7cf5f20d995eb6395cab089dd 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); } }