Make Private messages more sane

This commit is contained in:
tgpethan 2020-09-02 11:28:50 +01:00
parent de5b4841de
commit 76050657d1

View file

@ -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
});