Actually fix capital /WHISPER

As reported by kiwq
This commit is contained in:
Dennis Felsing 2022-06-03 15:08:38 +02:00
parent ce795572d2
commit 9807625ca4

View file

@ -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);