Add Part, youreoper
This commit is contained in:
@@ -13,6 +13,7 @@ sealed class ServerMessage {
|
|||||||
data class Join(val target: String) : ServerMessage()
|
data class Join(val target: String) : ServerMessage()
|
||||||
data class Ping(val token: String) : ServerMessage()
|
data class Ping(val token: String) : ServerMessage()
|
||||||
data class Error(val message: String) : ServerMessage()
|
data class Error(val message: String) : ServerMessage()
|
||||||
|
data class Part(val channels: List<String>) : ServerMessage()
|
||||||
|
|
||||||
sealed class Numeric(val number: Short) : ServerMessage() {
|
sealed class Numeric(val number: Short) : ServerMessage() {
|
||||||
data class RPL_WELCOME(val message: String) : Numeric(1)
|
data class RPL_WELCOME(val message: String) : Numeric(1)
|
||||||
@@ -27,5 +28,6 @@ sealed class ServerMessage {
|
|||||||
data class RPL_TOPIC(val topic: String) : Numeric(332)
|
data class RPL_TOPIC(val topic: String) : Numeric(332)
|
||||||
data class RPL_NAMREPLY(val message: String) : Numeric(353)
|
data class RPL_NAMREPLY(val message: String) : Numeric(353)
|
||||||
data object RPL_ENDOFNAMES : Numeric(366)
|
data object RPL_ENDOFNAMES : Numeric(366)
|
||||||
|
data object RPL_YOUREOPER : Numeric(381)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user