chore: document and add RFC1459, RFC2812 and IRCv3 commands

* also rename ChannelIndex to ActiveChannelIndex
This commit is contained in:
2022-01-21 03:23:02 +02:00
parent 2edc007022
commit 26deca05d9
5 changed files with 280 additions and 126 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ type Client struct {
ActiveChannel string
// Active channel index
ChannelIndex int
ActiveChannelIndex int
// Reference to the bubbletea program
Tea *tea.Program
@@ -136,7 +136,7 @@ func (c *Client) Register(nick string, password string, channel string) {
Name: c.ActiveChannel,
Users: make(map[string]User),
})
c.ChannelIndex = 1
c.ActiveChannelIndex = 1
}
}