diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 8bd559899..9e1b2d506 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -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);