feat: parse tags and negotiate message-tags capability

This commit is contained in:
2021-12-09 05:14:20 +02:00
parent f40ddfd67c
commit c3f75c2a43
3 changed files with 23 additions and 10 deletions
+1
View File
@@ -77,6 +77,7 @@ func (c Client) Register(nick string, password string, channel string) {
c.SendCommand("NICK", nick)
c.SendCommand("USER", nick, "0", "*", nick)
// TODO: CAP REQ :whatever capability the client recognizes and supports
c.SendCommand("CAP", "REQ", ":message-tags")
c.SendCommand("CAP", "END")
c.SendCommand("JOIN", channel)
}