Skip to content

Commit

Permalink
Fix local variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Robyt3 committed Apr 2, 2022
1 parent 305d32c commit 6d23f0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/client/components/chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1582,8 +1582,8 @@ void CChat::Com_Mute(IConsole::IResult *pResult, void *pContext)
int TargetID = pChatData->m_pClient->GetClientID(pResult->GetString(0));
if(TargetID != -1)
{
bool isMuted = pChatData->m_pClient->m_aClients[TargetID].m_ChatIgnore;
if(isMuted)
bool IsMuted = pChatData->m_pClient->m_aClients[TargetID].m_ChatIgnore;
if(IsMuted)
pChatData->m_pClient->Blacklist()->RemoveIgnoredPlayer(pChatData->m_pClient->m_aClients[TargetID].m_aName, pChatData->m_pClient->m_aClients[TargetID].m_aClan);
else
pChatData->m_pClient->Blacklist()->AddIgnoredPlayer(pChatData->m_pClient->m_aClients[TargetID].m_aName, pChatData->m_pClient->m_aClients[TargetID].m_aClan);
Expand All @@ -1592,7 +1592,7 @@ void CChat::Com_Mute(IConsole::IResult *pResult, void *pContext)
pChatData->ClearInput();

char aMsg[128];
str_format(aMsg, sizeof(aMsg), !isMuted ? Localize("'%s' was muted") : Localize("'%s' was unmuted"), pChatData->m_pClient->m_aClients[TargetID].m_aName);
str_format(aMsg, sizeof(aMsg), !IsMuted ? Localize("'%s' was muted") : Localize("'%s' was unmuted"), pChatData->m_pClient->m_aClients[TargetID].m_aName);
pChatData->AddLine(aMsg, CLIENT_MSG, CHAT_ALL);
}
pChatData->Disable();
Expand Down

0 comments on commit 6d23f0c

Please sign in to comment.