From 76050657d1994748ded9d229d13fbe3d965dd9f1 Mon Sep 17 00:00:00 2001 From: tgpethan Date: Wed, 2 Sep 2020 11:28:50 +0100 Subject: [PATCH] Make Private messages more sane --- server/Packets/SendPrivateMessage.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/Packets/SendPrivateMessage.js b/server/Packets/SendPrivateMessage.js index 4d7ddaa..f42b457 100644 --- a/server/Packets/SendPrivateMessage.js +++ b/server/Packets/SendPrivateMessage.js @@ -4,12 +4,10 @@ const osu = require("osu-packet"), module.exports = function(CurrentPacket, CurrentUser) { const osuPacketWriter = new osu.Bancho.Writer; - osuPacketWriter.ChannelJoinSuccess(CurrentUser.username); - osuPacketWriter.SendMessage({ sendingClient: CurrentUser.username, message: CurrentPacket.data.message, - target: CurrentPacket.data.target, + target: CurrentUser.username, senderId: CurrentUser.id });