Пример #1
0
        private static void LeafPrivateIgnored(Leaf leaf, TCPPacketReader packet)
        {
            if (leaf.LoginPhase != LinkLogin.Ready)
            {
                leaf.SendPacket(HubOutbound.LinkError(LinkError.BadProtocol));
                leaf.Disconnect();
                return;
            }

            uint   sender_leaf = packet;
            String sender      = packet.ReadString(leaf);
            String target      = packet.ReadString(leaf);
            Leaf   l           = LeafPool.Leaves.Find(x => x.Ident == sender_leaf && x.LoginPhase == LinkLogin.Ready);

            if (l != null)
            {
                l.SendPacket(HubOutbound.HubPrivateIgnored(l, sender, target));
            }
        }