mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
Fix /whisper
This commit is contained in:
parent
7f4fe15e1c
commit
b4f0b96acc
|
@ -813,7 +813,7 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
|
|||
str_copy(pWhisperMsg, pMsg->m_pMessage + 3, 256);
|
||||
Whisper(pPlayer->GetCID(), pWhisperMsg);
|
||||
}
|
||||
else if (str_comp(pMsg->m_pMessage+1, "whisper ") == 0)
|
||||
else if (str_comp_num(pMsg->m_pMessage+1, "whisper ", 8) == 0)
|
||||
{
|
||||
char pWhisperMsg[256];
|
||||
str_copy(pWhisperMsg, pMsg->m_pMessage + 9, 256);
|
||||
|
|
Loading…
Reference in a new issue