Skip to content

Commit

Permalink
Add message parameter to onPlayerPrivateMessage (#3382)
Browse files Browse the repository at this point in the history
Update CConsoleCommands.cpp
  • Loading branch information
FileEX committed May 23, 2024
1 parent 40828d4 commit 79f8ed6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Server/mods/deathmatch/logic/CConsoleCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,10 @@ bool CConsoleCommands::Msg(CConsole* pConsole, const char* szInArguments, CClien

// Send the message and player pointer to the script
CLuaArguments Arguments;
Arguments.PushString(szArguments);
Arguments.PushString(szArguments); // We don't want to remove this for backwards compatibility reasons
Arguments.PushElement(pPlayer);
Arguments.PushString(szMessage); // Fix #2135

bool bContinue = pSender->CallEvent("onPlayerPrivateMessage", Arguments);
if (bContinue)
{
Expand Down

0 comments on commit 79f8ed6

Please sign in to comment.