From a3618b97ae0b543af293e6bc321dd8fd7cefc5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken-H=C3=A5vard=20Lieng?= Date: Fri, 11 Jan 2019 02:46:46 +0100 Subject: [PATCH] Add list command --- pkg/irc/client.go | 4 ++++ pkg/irc/const.go | 2 ++ 2 files changed, 6 insertions(+) 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"