diff --git a/src/m_emotes.cpp b/src/m_emotes.cpp index 07c9bd5b4..dd6465ac4 100644 --- a/src/m_emotes.cpp +++ b/src/m_emotes.cpp @@ -189,7 +189,7 @@ emote_t *M_FindEmote(const char *name, int len, int skip) for (auto &pair: emotes) { - if (pair.first.rfind(query) == std::string::npos) + if (strcasestr(pair.first.c_str(), query) == NULL) continue; if (skip > 0)