diff --git a/pkg/irc/client.go b/pkg/irc/client.go index d7a68ea0..107795ab 100644 --- a/pkg/irc/client.go +++ b/pkg/irc/client.go @@ -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) } diff --git a/pkg/irc/const.go b/pkg/irc/const.go index 88c7306a..06d5045f 100644 --- a/pkg/irc/const.go +++ b/pkg/irc/const.go @@ -28,6 +28,8 @@ const ( ReplyWhoisIdle = "317" ReplyEndOfWhois = "318" ReplyWhoisChannels = "319" + ReplyList = "322" + ReplyListEnd = "323" ReplyNoTopic = "331" ReplyTopic = "332" ReplyNamReply = "353"