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.

MessageProcessor.kt 516B

12345678910111213141516171819202122232425
  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. PingProcessor(),
  18. WelcomeProcessor()
  19. )