crlib: fix uppercase un utf8tools.

This commit is contained in:
ds 2020-09-13 16:18:21 +03:00
commit b10b3ef352
2 changed files with 3 additions and 3 deletions

View file

@ -1129,7 +1129,7 @@ public:
break; break;
} }
} }
return result; return result.uppercase ();
} }
}; };

View file

@ -304,7 +304,7 @@ bool Bot::isReplyingToChat () {
if (m_sayTextBuffer.timeNextChat < game.time () + rg.float_ (m_sayTextBuffer.chatDelay / 2, m_sayTextBuffer.chatDelay)) { if (m_sayTextBuffer.timeNextChat < game.time () + rg.float_ (m_sayTextBuffer.chatDelay / 2, m_sayTextBuffer.chatDelay)) {
String replyText; String replyText;
if (rg.chance (m_sayTextBuffer.chatProbability + rg.int_ (20, 50)) && checkChatKeywords (replyText)) { if (rg.chance (m_sayTextBuffer.chatProbability + rg.int_ (40, 70)) && checkChatKeywords (replyText)) {
prepareChatMessage (replyText); prepareChatMessage (replyText);
pushMsgQueue (BotMsg::Say); pushMsgQueue (BotMsg::Say);