Exemple #1
0
        public static void HandlePacketChatMessage(Client client, ChatMessagePacket packet)
        {
            string clean = Chat.CleanMessage(packet.Message);

            if (clean.StartsWith("/"))
            {
                client.ExecuteCommand(clean.Substring(1));
            }
            else
            {
                client.ExecuteChat(clean);
            }
        }
Exemple #2
0
        public static void HandlePacketChatMessage(Client client, ChatMessagePacket packet)
        {
            string clean = Chat.CleanMessage(packet.Message);

            if (clean.StartsWith("/"))
                client.ExecuteCommand(clean.Substring(1));
            else
                client.ExecuteChat(clean);
        }