update docs, and todos

This commit is contained in:
Liam Stanley 2017-01-03 11:12:18 -05:00
parent 714a315ef0
commit 0e76c2dc98
2 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,6 @@
- [ ] IRCv3 spec -- [details](http://ircv3.net):
- [ ] [account-notify](http://ircv3.net/specs/extensions/account-notify-3.1.html)
- [ ] [account-tag](http://ircv3.net/specs/extensions/account-tag-3.2.html)
- [ ] [message-tags](http://ircv3.net/specs/core/message-tags-3.3.html)
- [ ] [multi-prefix](http://ircv3.net/specs/extensions/multi-prefix-3.1.html)
- [ ] [sasl](http://ircv3.net/specs/extensions/sasl-3.2.html)
- [ ] [userhost-in-names](http://ircv3.net/specs/extensions/userhost-in-names-3.2.html)

View File

@ -109,6 +109,8 @@ func (t Tags) String() string {
return string(t.Bytes())
}
// writeTo writes the necessary tag bytes to an io.Writer, including a trailing
// space-separator.
func (t Tags) writeTo(w io.Writer) (n int, err error) {
b := t.Bytes()
if len(b) == 0 {
@ -186,6 +188,7 @@ func (t Tags) Remove(key string) (success bool) {
return success
}
// validTag validates an IRC tag.
func validTag(name string) bool {
if len(name) < 1 {
return false