Skip to content

Commit

Permalink
quote names in chatbind autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrc6 committed Dec 23, 2024
1 parent 7280439 commit a0c8111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/client/components/chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ bool CChat::OnInput(const IInput::CEvent &Event)

// quote the name
char aQuoted[128];
if(m_Input.GetString()[0] == '/' && (str_find(pCompletionString, " ") || str_find(pCompletionString, "\"")))
if((m_Input.GetString()[0] == '/' || m_pClient->m_Bindchat.ChatDoBinds(m_Input.GetString())) && (str_find(pCompletionString, " ") || str_find(pCompletionString, "\"")))
{
// escape the name
str_copy(aQuoted, "\"");
Expand Down

0 comments on commit a0c8111

Please sign in to comment.