mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Actually fix capital /WHISPER
As reported by kiwq
This commit is contained in:
parent
ce795572d2
commit
9807625ca4
|
@ -1859,25 +1859,25 @@ void CGameContext::OnMessage(int MsgID, CUnpacker *pUnpacker, int ClientID)
|
|||
|
||||
if(pMsg->m_pMessage[0] == '/')
|
||||
{
|
||||
if(str_startswith(pMsg->m_pMessage + 1, "w "))
|
||||
if(str_startswith_nocase(pMsg->m_pMessage + 1, "w "))
|
||||
{
|
||||
char aWhisperMsg[256];
|
||||
str_copy(aWhisperMsg, pMsg->m_pMessage + 3, 256);
|
||||
Whisper(pPlayer->GetCID(), aWhisperMsg);
|
||||
}
|
||||
else if(str_startswith(pMsg->m_pMessage + 1, "whisper "))
|
||||
else if(str_startswith_nocase(pMsg->m_pMessage + 1, "whisper "))
|
||||
{
|
||||
char aWhisperMsg[256];
|
||||
str_copy(aWhisperMsg, pMsg->m_pMessage + 9, 256);
|
||||
Whisper(pPlayer->GetCID(), aWhisperMsg);
|
||||
}
|
||||
else if(str_startswith(pMsg->m_pMessage + 1, "c "))
|
||||
else if(str_startswith_nocase(pMsg->m_pMessage + 1, "c "))
|
||||
{
|
||||
char aWhisperMsg[256];
|
||||
str_copy(aWhisperMsg, pMsg->m_pMessage + 3, 256);
|
||||
Converse(pPlayer->GetCID(), aWhisperMsg);
|
||||
}
|
||||
else if(str_startswith(pMsg->m_pMessage + 1, "converse "))
|
||||
else if(str_startswith_nocase(pMsg->m_pMessage + 1, "converse "))
|
||||
{
|
||||
char aWhisperMsg[256];
|
||||
str_copy(aWhisperMsg, pMsg->m_pMessage + 10, 256);
|
||||
|
|
Loading…
Reference in a new issue