private void Memory_OnChatReceived(ChatLogItem item) { string rtf = BmpChatParser.FormatChat(item); ChatLogAll.AppendRtf(rtf); Func <bool> cmdFunc = chatListener.GetChatCommand(item); if (cmdFunc != null) { ChatLogCmd.AppendRtf(rtf); if (cmdFunc()) { // successful command? } } }
private void Memory_OnChatReceived(ChatLogItem item) { string rtf = BmpChatParser.FormatChat(item); ChatLogAll.AppendRtf(rtf); }