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.

ChannelState.kt 688B

1234567891011121314151617181920212223242526
  1. package com.dmdirc.ktirc.model
  2. import com.dmdirc.ktirc.io.CaseMapping
  3. /**
  4. * Describes the state of a channel that the client has joined.
  5. */
  6. class ChannelState(val name: String, caseMappingProvider: () -> CaseMapping) {
  7. /**
  8. * Whether or not we are in the process of receiving a user list (which may span many messages).
  9. */
  10. var receivingUserList = false
  11. internal set
  12. /**
  13. * A map of all users in the channel to their current modes.
  14. */
  15. val users = ChannelUserMap(caseMappingProvider)
  16. }
  17. /**
  18. * Describes a user in a channel, and their modes.
  19. */
  20. data class ChannelUser(var nickname: String, var modes: String = "")