Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

MessageProcessor.kt 543B

1234567891011121314151617181920212223242526
  1. package com.dmdirc.ktirc.messages
  2. import com.dmdirc.ktirc.events.IrcEvent
  3. import com.dmdirc.ktirc.io.IrcMessage
  4. interface MessageProcessor {
  5. /**
  6. * The messages which this handler can process.
  7. */
  8. val commands: Array<String>
  9. /**
  10. * Processes the given message.
  11. */
  12. fun process(message: IrcMessage): List<IrcEvent>
  13. }
  14. val messageProcessors = setOf(
  15. ISupportProcessor(),
  16. JoinProcessor(),
  17. NamesProcessor(),
  18. PingProcessor(),
  19. WelcomeProcessor()
  20. )