mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #8014 from furo321/case-insenstive-command-chat
Make chat commands completion case-insenstive
This commit is contained in:
commit
95e51db753
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue