Make emote search case insensetive (emotes themself still are case sensetive)

This commit is contained in:
Indev 2025-11-27 18:40:52 +03:00 committed by NepDisk
parent 945b5da5a3
commit c56d0c8c73

View file

@ -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)