The easy to use and full featured Irc Bot everyone is talking about!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IRCMessages.cs 547B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Combot
  7. {
  8. internal partial class IRCService
  9. {
  10. public event Action<Message> MessageReceivedEvent;
  11. internal void ParseTCPMessage(string message)
  12. {
  13. Message parsedMessage = new Message();
  14. Action<Message> localEvent = MessageReceivedEvent;
  15. if (localEvent != null)
  16. {
  17. localEvent(parsedMessage);
  18. }
  19. }
  20. }
  21. }