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 490B

123456789101112131415161718192021222324
  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. PingProcessor(),
  17. WelcomeProcessor()
  18. )