Merge pull request #8014 from furo321/case-insenstive-command-chat

Make chat commands completion case-insenstive
This commit is contained in:
archimede67 2024-02-24 18:30:43 +00:00 committed by GitHub
commit 95e51db753
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -353,7 +353,7 @@ bool CChat::OnInput(const IInput::CEvent &Event)
auto &Command = m_vCommands[Index];
if(str_startswith(Command.m_aName, pCommandStart))
if(str_startswith_nocase(Command.m_aName, pCommandStart))
{
pCompletionCommand = &Command;
m_CompletionChosen = Index + SearchType * NumCommands;