diff options
Diffstat (limited to 'vendor/layeh.com/gumble/gumble/accesstokens.go')
-rw-r--r-- | vendor/layeh.com/gumble/gumble/accesstokens.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/layeh.com/gumble/gumble/accesstokens.go b/vendor/layeh.com/gumble/gumble/accesstokens.go new file mode 100644 index 00000000..3bcbaa45 --- /dev/null +++ b/vendor/layeh.com/gumble/gumble/accesstokens.go @@ -0,0 +1,16 @@ +package gumble + +import ( + "layeh.com/gumble/gumble/MumbleProto" +) + +// AccessTokens are additional passwords that can be provided to the server to +// gain access to restricted channels. +type AccessTokens []string + +func (a AccessTokens) writeMessage(client *Client) error { + packet := MumbleProto.Authenticate{ + Tokens: a, + } + return client.Conn.WriteProto(&packet) +} |