crlib: fix uppercase un utf8tools.
This commit is contained in:
parent
a675c40927
commit
b10b3ef352
2 changed files with 3 additions and 3 deletions
|
|
@ -1129,7 +1129,7 @@ public:
|
|||
break;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
return result.uppercase ();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue