Add list command

This commit is contained in:
Ken-Håvard Lieng 2019-01-11 02:46:46 +01:00
parent e4d5d2737b
commit a3618b97ae
2 changed files with 6 additions and 0 deletions

View File

@ -151,6 +151,10 @@ func (c *Client) Away(message string) {
c.Write("AWAY :" + message)
}
func (c *Client) List() {
c.Write("LIST")
}
func (c *Client) writePass(password string) {
c.write("PASS " + password)
}

View File

@ -28,6 +28,8 @@ const (
ReplyWhoisIdle = "317"
ReplyEndOfWhois = "318"
ReplyWhoisChannels = "319"
ReplyList = "322"
ReplyListEnd = "323"
ReplyNoTopic = "331"
ReplyTopic = "332"
ReplyNamReply = "353"