Exemple #1
0
        void RecvSendPrivateMessage(IIPSocket conn, BitStream r)
        {
            string TargetName = r.ReadString();
            string Text       = r.ReadString();

            // Get the user to send the message to
            User TargetChar = World.FindUser(TargetName);

            string PrivateMessage = TargetName + " Says: " + Text;

            using (var pw = ServerPacket.ReceivePrivateMessage(PrivateMessage))
            {
                TargetChar.Send(pw, ServerMessageType.GUIChat);
            }
        }