update docs, and todos
This commit is contained in:
parent
714a315ef0
commit
0e76c2dc98
|
@ -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)
|
||||
|
|
3
tags.go
3
tags.go
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue