1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-19 12:07:13 +01:00

Fix private message event calling the regular chat message finction instead. Should close #15

This commit is contained in:
Sandu Liviu Catalin 2016-07-14 23:46:57 +03:00
parent 26f5c495f5
commit 89bd8a3cd7

View File

@ -552,7 +552,7 @@ void Core::EmitPlayerPrivateMessage(Int32 player_id, Int32 target_player_id, CCS
PlayerInst & _player = m_Players.at(player_id); PlayerInst & _player = m_Players.at(player_id);
PlayerInst & _receiver = m_Players.at(target_player_id); PlayerInst & _receiver = m_Players.at(target_player_id);
Emit(_player.mOnMessage,_receiver.mObj, message); Emit(_player.mOnMessage,_receiver.mObj, message);
Emit(mOnPlayerMessage, _player.mObj, _receiver.mObj, message); Emit(mOnPlayerPrivateMessage, _player.mObj, _receiver.mObj, message);
} }
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------