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

@ -108,7 +108,7 @@ bool BotSupport::checkKeywords (StringRef line, String &reply) {
break;
}
}
// reply not used, so use it
if (!replyUsed) {
reply.assign (choosenReply); // update final buffer
@ -304,7 +304,7 @@ bool Bot::isReplyingToChat () {
if (m_sayTextBuffer.timeNextChat < game.time () + rg.float_ (m_sayTextBuffer.chatDelay / 2, m_sayTextBuffer.chatDelay)) {
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);
pushMsgQueue (BotMsg::Say);