/// <summary> /// Sends the supplied line of text to the specified log channel. If type /// is ChatRaw, its corresponding plain Chat line will be sent automatically. /// </summary> /// <param name="type"></param> /// <param name="line"></param> public void SendLog(ClientLogType type, string line) { if (settings.LogChannels[type]) { Send(false, "[{0}] {1}", type.Name, line); } // ClientLogHandler only sends ChatRaw lines so we need to resend // them as plain Chat lines if (ClientLogType.ChatRaw == type && settings.LogChannels[ClientLogType.Chat]) { Send(false, "[{0}] {1}", ClientLogType.Chat.Name, RemoveChatFormatting(line)); } }
private void SendLog(ClientLogType type, Logging.LogMessage message) { string msg = message.Message; if (Color.White != message.Color) { msg = FormatColor(message.Color, msg); } client.SendLog(type, msg); }