public static void Process(ChatLogEntry chatLogEntry)
 {
     if (IsPaused)
     {
         return;
     }
     try
     {
         chatLogEntry.Line = chatLogEntry.Line.Replace("  ", " ");
         if (Constants.NeedGreed.Any(chatLogEntry.Line.Contains))
         {
             NeedGreedHistory.Add(chatLogEntry.Line);
         }
         DispatcherHelper.Invoke(() => EventParser.Instance.ParseAndPublish(chatLogEntry));
         HandleCommands(chatLogEntry);
     }
     catch (Exception ex)
     {
     }
 }
Esempio n. 2
0
        public static void Process(ChatLogItem chatLogItem)
        {
            if (IsPaused)
            {
                return;
            }

            try {
                chatLogItem.Line = chatLogItem.Line.Replace("  ", " ");
                if (Constants.NeedGreed.Any(chatLogItem.Line.Contains))
                {
                    NeedGreedHistory.Add(chatLogItem.Line);
                }

                DispatcherHelper.Invoke(() => EventParser.Instance.ParseAndPublish(chatLogItem));
                HandleCommands(chatLogItem);
            }
            catch (Exception ex) {
                Logging.Log(Logger, new LogItem(ex, true));
            }
        }