Make chat commands completion case-insenstive

This commit is contained in:
furo 2024-02-24 18:11:26 +01:00
parent 8d2de4b8c2
commit f3a277c365

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;