public void WriteLine(object obj)
        {
            if (bufferAll)
            {
                allBuffer += obj.ToString() + "\n";
                return;
            }

            if (useTs)
            {
                try
                {
                    if (usePrivate)
                    {
                        client.SendMessage(buffer + obj.ToString(), sender);
                    }
                    else
                    {
                        client.SendChannelMessage(buffer + obj.ToString());
                    }
                }catch (Exception e)
                {
                    Console.WriteLine(e);
                    Console.WriteLine(obj.ToString().Length);
                }

                buffer = "";
            }
            else
            {
                Console.WriteLine(obj);
            }
        }
Example #2
0
 public E <LocalStr> SendChannelMessage(string message)
 {
     if (Ts3String.TokenLength(message) > Ts3Const.MaxSizeTextMessage)
     {
         return(new LocalStr(strings.error_ts_msg_too_long));
     }
     return(tsFullClient.SendChannelMessage(message).FormatLocal());
 }