Fix DM message + show sent message

This commit is contained in:
Vortrex
2022-10-29 10:07:49 -05:00
parent 3eda3acef7
commit afed90a2eb

View File

@@ -232,7 +232,8 @@ function messagePlayersInRace(raceId, message) {
// ===========================================================================
function messagePlayerPrivateMessage(toClient, fromClient, messageText) {
messagePlayerNormal(toClient, `{yellow}[DM] ${getCharacterFullName(fromClient)}{MAINCOLOUR}says: {ALTCOLOUR}${messageText}`);
messagePlayerNormal(toClient, `📥 {yellow}DM from ${getCharacterFullName(fromClient)}{MAINCOLOUR}: ${messageText}`);
messagePlayerNormal(fromClient, `📤 {yellow}DM to ${getCharacterFullName(toClient)}{MAINCOLOUR}: ${messageText}`);
}
// ===========================================================================