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) { module.exports = function(CurrentPacket, CurrentUser) {
const osuPacketWriter = new osu.Bancho.Writer; const osuPacketWriter = new osu.Bancho.Writer;
osuPacketWriter.ChannelJoinSuccess(CurrentUser.username);
osuPacketWriter.SendMessage({ osuPacketWriter.SendMessage({
sendingClient: CurrentUser.username, sendingClient: CurrentUser.username,
message: CurrentPacket.data.message, message: CurrentPacket.data.message,
target: CurrentPacket.data.target, target: CurrentUser.username,
senderId: CurrentUser.id senderId: CurrentUser.id
}); });