mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-02-20 18:16:52 +00:00
17 lines
367 B
Go
17 lines
367 B
Go
![]() |
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)
|
||
|
}
|