crlib: switch to new hashmap

This commit is contained in:
jeefo 2023-04-15 04:10:09 +03:00
commit 2765eed7ac
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
8 changed files with 67 additions and 75 deletions

View file

@ -793,7 +793,7 @@ const char *BotConfig::translate (StringRef input) {
}
auto hash = hashLangString (input.chars ());
if (m_language.has (hash)) {
if (m_language.exists (hash)) {
return m_language[hash].chars ();
}
return input.chars (); // nothing found