Exemplo n.º 1
0
        /// <summary>
        /// </summary>
        /// <param name="message">
        /// </param>
        /// <param name="client">
        /// </param>
        public static void Read(ChatCmdMessage message, Client client)
        {
            string fullArgs = message.Command.TrimEnd(char.MinValue);
            string temp = string.Empty;
            do
            {
                temp = fullArgs;
                fullArgs = fullArgs.Replace("  ", " ");
            }
            while (temp != fullArgs);

            string[] cmdArgs = fullArgs.Trim().Split(' ');

            Program.csc.CallChatCommand(cmdArgs[0].ToLower(), client, message.Target, cmdArgs);
        }
 /// <summary>
 /// </summary>
 /// <param name="message">
 /// </param>
 /// <param name="client">
 /// </param>
 public static void Read(ChatCmdMessage message, ZoneClient client)
 {
     string fullArgs = message.Command.TrimEnd(char.MinValue);
     Read(fullArgs, client);
 }